Merge from trunk @ 138209
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / extern-c-redecl.C
blob31d100a74f96123b47d2f7c415c6927a0f0f6448
1 // Contributed by Dodji Seketeli <dseketel@redhat.com>
2 // Origin: PR c++/13699
3 // { dg-do compile }
5 namespace A {
6     extern "C" void foo_func () throw(); // { dg-error "conflicts" }
8 // next line should trigger an error because
9 // it conflicts with previous declaration of foo_func (), due to
10 // different exception specifications.
11 extern "C" void foo_func (); // { dg-error "C language|exception specifications" }