noreturn-2.c: New test.
2000-05-04 Andreas Jaeger <aj@suse.de> * gcc.dg/noreturn-2.c: New test. From-SVN: r33704
This commit is contained in:
parent
a467853843
commit
07d787fdd2
|
@ -1,3 +1,7 @@
|
|||
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
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
/* 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 ();
|
||||
}
|
Loading…
Reference in New Issue