summaryrefslogtreecommitdiff
path: root/clang/test/Sema/gnu89.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/gnu89.c')
-rw-r--r--clang/test/Sema/gnu89.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/gnu89.c b/clang/test/Sema/gnu89.c
new file mode 100644
index 0000000..189e6b0
--- /dev/null
+++ b/clang/test/Sema/gnu89.c
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 %s -std=gnu89 -pedantic -fsyntax-only -verify
+
+int f(int restrict);
+
+void main() {} // expected-warning {{return type of 'main' is not 'int'}}