summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PR3130-cond-constant.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/PR3130-cond-constant.c')
-rw-r--r--test/CodeGen/PR3130-cond-constant.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/PR3130-cond-constant.c b/test/CodeGen/PR3130-cond-constant.c
new file mode 100644
index 0000000..e488eeb
--- /dev/null
+++ b/test/CodeGen/PR3130-cond-constant.c
@@ -0,0 +1,3 @@
+// RUN: clang-cc -emit-llvm %s -o -
+
+int a = 2.0 ? 1 : 2;
OpenPOWER on IntegriCloud