PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / unclosed-extern-c.C
blob44f538e33ecb069126718b4911031370572a4d67
1 extern "C" { // { dg-line open_extern_c }
3   int foo (void);
5 /* Missing close-brace for the extern "C" here.  */
7 template <typename T> // { dg-error "template with C linkage" }
8 void bar (void);
9 // { dg-message "1: 'extern .C.' linkage started here" "" { target *-*-* } open_extern_c }
11 void test (void); /* { dg-error "17: expected '.' at end of input" } */
12 // { message "12: to match this '.'" "" { target *-*-* } open_extern_c }