* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / extern-c-redecl.C
blobfd49868ee4ebabb8425182a332d9f35c2e9748f0
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-message "previous" }
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" }