aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/default1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/default1.c')
-rw-r--r--test/Sema/default1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/default1.c b/test/Sema/default1.c
new file mode 100644
index 000000000000..6e8a27bf5733
--- /dev/null
+++ b/test/Sema/default1.c
@@ -0,0 +1,2 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+void f(int i = 0); // expected-error {{C does not support default arguments}}