repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
c11-noreturn-3.c
blob
168d012a3f00aa7044ba3e60bcce2e9a7ba042aa
1
/* Test C11 _Noreturn. Test _Noreturn on main, hosted. */
2
/* { dg-do compile } */
3
/* { dg-options "-std=c11 -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
}