diff options
Diffstat (limited to 'test/CXX/expr/expr.const/p3-0x-nowarn.cpp')
-rw-r--r-- | test/CXX/expr/expr.const/p3-0x-nowarn.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CXX/expr/expr.const/p3-0x-nowarn.cpp b/test/CXX/expr/expr.const/p3-0x-nowarn.cpp new file mode 100644 index 0000000..c891374 --- /dev/null +++ b/test/CXX/expr/expr.const/p3-0x-nowarn.cpp @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wno-c++11-narrowing -verify %s + +// <rdar://problem/11121178> +void f(int x) { + switch (x) { + case 0x80000001: break; + } +} |