Debian Codegraph @

gcc/testsuite/g++.dg/lookup/extern-c-redecl.C

raw
1 // Contributed by Dodji Seketeli <[email protected]>
2 // Origin: PR c++/13699
3 // { dg-do compile }
4
5 namespace A {
6 extern "C" void foo_func () throw(); // { dg-message "previous" }
7 }
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 "17:conflicting C language linkage|exception specifications" }