view gcc/testsuite/g++.dg/diagnostic/unclosed-extern-c.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

extern "C" { // { dg-line open_extern_c }

  int foo (void);

/* Missing close-brace for the extern "C" here.  */

template <typename T> // { dg-error "template with C linkage" }
void bar (void);
// { dg-message "1: 'extern .C.' linkage started here" "" { target *-*-* } open_extern_c }

void test (void); /* { dg-error "17: expected '.' at end of input" } */
// { message "12: to match this '.'" "" { target *-*-* } open_extern_c }