OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [assert2.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Malformed assertion tests.  */
2
/* { dg-do preprocess } */
3
 
4
#assert         /* { dg-error "without predicate" "assert w/o predicate" } */
5
#assert %       /* { dg-error "an identifier" "assert punctuation" } */
6
#assert 12      /* { dg-error "an identifier" "assert number" } */
7
#assert abc     /* { dg-error "missing" "assert w/o answer" } */
8
 
9
#if #           /* { dg-error "without predicate" "test w/o predicate" } */
10
#endif
11
 
12
#if #%          /* { dg-error "an identifier" "test punctuation" } */
13
#endif
14
 
15
#if #12         /* { dg-error "an identifier" "test number" } */
16
#endif
17
 
18
#if #abc
19
#error          /* { dg-bogus "error" "test w/o answer" } */
20
#endif
21
 
22
#if #abc[def]   /* { dg-error "not valid in" "bad syntax" } */
23
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.