summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/constant-expression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/constant-expression.cpp')
-rw-r--r--test/SemaCXX/constant-expression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/constant-expression.cpp b/test/SemaCXX/constant-expression.cpp
index a17dd58..1341036 100644
--- a/test/SemaCXX/constant-expression.cpp
+++ b/test/SemaCXX/constant-expression.cpp
@@ -57,8 +57,8 @@ template <int itval, Enum etval> struct C {
i10 = sizeof(Struct),
i11 = true? 1 + cval * Struct::sval ^ itval / (int)1.5 - sizeof(Struct) : 0
;
- void f() {
- switch(0) {
+ void f(int cond) {
+ switch(cond) {
case 0 + 1:
case 100 + eval:
case 200 + cval:
OpenPOWER on IntegriCloud