annotate gcc/testsuite/g++.dg/diagnostic/unclosed-extern-c.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 extern "C" { // { dg-line open_extern_c }
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 int foo (void);
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 /* Missing close-brace for the extern "C" here. */
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 template <typename T> // { dg-error "template with C linkage" }
kono
parents:
diff changeset
8 void bar (void);
kono
parents:
diff changeset
9 // { dg-message "1: 'extern .C.' linkage started here" "" { target *-*-* } open_extern_c }
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 void test (void); /* { dg-error "17: expected '.' at end of input" } */
kono
parents:
diff changeset
12 // { message "12: to match this '.'" "" { target *-*-* } open_extern_c }