OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Backported from mainline
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
c1x-noreturn-3.c
1
/* Test C1X _Noreturn. Test _Noreturn on main, hosted. */
2
/* { dg-do compile } */
3
/* { dg-options "-std=c1x -pedantic-errors -fhosted" } */
4
5
_Noreturn void exit (int);
6
7
_Noreturn int
8
main (void) /* { dg-error "'main' declared '_Noreturn'" } */
9
{
10
exit (0);
11
}