// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s void f(); // Test typeof(expr) canonicalization template void f0(T x, decltype(f(N, x)) y) { } // expected-note{{previous}} template void f0(T x, decltype((f)(N, x)) y) { } template void f0(U u, decltype(f(M, u))) { } // expected-error{{redefinition}} // PR12438: Test sizeof...() canonicalization template struct N {}; template N f1() {} // expected-note{{previous}} template N f1() {} template N f1() {} // expected-error{{redefinition}}