summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/separate-1.c
blob: 33d910b3c005ad28e96462711ac266846999618f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Copyright 2003 Free Software Foundation.  */

/* { dg-do compile } */
/* { dg-options "-save-temps" } */

/* Make sure we report errors in the right line, even if separate
   preprocessing is used.  */

#define FOO()

int FOO( 
	), bar; /* { dg-error "parse error|syntax error|expected" "error on this line" } */

int baz FOO /* { dg-error "parse error|syntax error|expected" "error on this line" } */
;

/* { dg-final { cleanup-saved-temps } } */