OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [assert2.c] - Blame information for rev 378

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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