Check for SSA_NAME not in the IL yet.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-specialization.C
blobacda6e0bcbfd42f6791d370ddd3cf3b6f40fd767
1 // PR c++/56871
2 // { dg-do compile { target c++11 } }
4 template<typename T> constexpr int foo(T);
5 template<> int foo(int);
6 template<> int foo(int);            // { dg-message "previous declaration 'int foo" "" { target { ! implicit_constexpr } } }
7 template<> constexpr int foo(int);  // { dg-error "redeclaration 'constexpr int foo" "" { target { ! implicit_constexpr } } }
9 template<typename T> int bar(T);
10 template<> constexpr int bar(int);
11 template<> constexpr int bar(int);  // { dg-message "previous declaration 'constexpr int bar" "" { target { ! implicit_constexpr } } }
12 template<> int bar(int);            // { dg-error "redeclaration 'int bar" "" { target { ! implicit_constexpr } } }