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/] [assert2.c] - Rev 867

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

/* Malformed assertion tests.  */
/* { dg-do preprocess } */
/* { dg-options "-fno-show-column" } */
 
#assert		/* { dg-error "without predicate" "assert w/o predicate" } */
#assert %	/* { dg-error "an identifier" "assert punctuation" } */
#assert 12	/* { dg-error "an identifier" "assert number" } */
#assert abc	/* { dg-error "missing" "assert w/o answer" } */
 
#if #		/* { dg-error "without predicate" "test w/o predicate" } */
#endif
 
#if #%		/* { dg-error "an identifier" "test punctuation" } */
#endif
 
#if #12		/* { dg-error "an identifier" "test number" } */
#endif
 
#if #abc
#error		/* { dg-bogus "error" "test w/o answer" } */
#endif
 
#if #abc[def]	/* { dg-error "is not valid" "test with malformed answer" } */
#endif
 

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

powered by: WebSVN 2.1.0

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