Commit 07d787fd by Andreas Jaeger Committed by Andreas Jaeger

noreturn-2.c: New test.

2000-05-04  Andreas Jaeger  <aj@suse.de>

	* gcc.dg/noreturn-2.c: New test.

From-SVN: r33704
parent a4678538
2000-05-04 Andreas Jaeger <aj@suse.de>
* gcc.dg/noreturn-2.c: New test.
2000-05-04 Neil Booth <NeilB@earthling.net>
* gcc.dg/cpp-opprec.c: New tests for operator precedence in the
......
/* Check for invalid "noreturn" warning. */
/* { dg-do compile } */
/* { dg-options "-O3 -Wall" } */
extern void abort (void) __attribute__ ((__noreturn__));
void noreturn (int x) __attribute__ ((__noreturn__));
void
noreturn (int x)
{
abort ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment