summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/eval-recursive-constant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/eval-recursive-constant.cpp')
-rw-r--r--clang/test/CodeGenCXX/eval-recursive-constant.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/eval-recursive-constant.cpp b/clang/test/CodeGenCXX/eval-recursive-constant.cpp
new file mode 100644
index 0000000..608c95d
--- /dev/null
+++ b/clang/test/CodeGenCXX/eval-recursive-constant.cpp
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 %s -emit-llvm-only
+
+extern const int a,b;
+const int a=b,b=a;
+int c() { if (a) return 1; return 0; }