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

Subversion Repositories openrisc_me

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Malformed assertion tests.  */
2
/* { dg-do preprocess } */
3
/* { dg-options "-fshow-column -Wno-deprecated" } */
4
 
5
#assert         /* { dg-error "without predicate" "assert w/o predicate" } */
6
#assert %       /* { dg-error "9:an identifier" "assert punctuation" } */
7
#assert 12      /* { dg-error "9:an identifier" "assert number" } */
8
#assert abc     /* { dg-error "9:missing" "assert w/o answer" } */
9
 
10
#if #           /* { dg-error "without predicate" "test w/o predicate" } */
11
#endif
12
 
13
#if #%          /* { dg-error "6:an identifier" "test punctuation" } */
14
#endif
15
 
16
#if #12         /* { dg-error "6: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 "9:is not valid" "test with malformed answer" } */
24
#endif

powered by: WebSVN 2.1.0

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