aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/expr/cond3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/expr/cond3.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/expr/cond3.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/expr/cond3.C b/gcc-4.9/gcc/testsuite/g++.dg/expr/cond3.C
new file mode 100644
index 000000000..50a4d9a13
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/expr/cond3.C
@@ -0,0 +1,6 @@
+const int i = 7;
+const int j = 3;
+
+void f(bool b) {
+ &(b ? i : j);
+}