1 // Contributed by Dodji Seketeli <dseketel@redhat.com>
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 "C language linkage|exception specifications" }
12