summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr7356.c
blob: 84baf078b96394aaa62a39b515c7e7b571e2b8cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-options "-fdiagnostics-show-caret" } */

a /* { dg-line stray_token } */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char** argv)
{
  return 0;
}

/* { dg-error "expected ';' before '.*'" "" { target *-*-* } stray_token } */
/* { dg-begin-multiline-output "" }
 a
  ^
  ;
   { dg-end-multiline-output "" } */