aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/static-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/static-init.c')
-rw-r--r--test/Sema/static-init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/static-init.c b/test/Sema/static-init.c
new file mode 100644
index 0000000000..e710973700
--- /dev/null
+++ b/test/Sema/static-init.c
@@ -0,0 +1,3 @@
+// RUN: clang -fsyntax-only -verify %s
+static int f = 10;
+static int b = f; // expected-error {{initializer element is not constant}}