summaryrefslogtreecommitdiff
path: root/stdnoreturn.c
blob: 1b730176aed2785e0e175d5e9162f57bee196444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#if defined __STDC_VERSION__ && 201112L <= __STDC_VERSION__
#include <stdnoreturn.h>
#include "test.h"

noreturn void foo(void)
{
	for (;;);
}

void test_stdnoreturn_h(void)
{
	testing_header(".h");

	/* tested by the fact that this compiles */

	testing_end();
}

#else
void test_stdnoreturn_h(void)
{
}
#endif