summaryrefslogtreecommitdiff
path: root/returning-from-a-_Noreturn-function.c
diff options
context:
space:
mode:
Diffstat (limited to 'returning-from-a-_Noreturn-function.c')
-rw-r--r--returning-from-a-_Noreturn-function.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/returning-from-a-_Noreturn-function.c b/returning-from-a-_Noreturn-function.c
new file mode 100644
index 0000000..ec072be
--- /dev/null
+++ b/returning-from-a-_Noreturn-function.c
@@ -0,0 +1,9 @@
+_Noreturn void foo(void)
+{
+ return;
+}
+
+int main(void)
+{
+ foo();
+}