llvm-for-llvmta/tools/clang/test/CXX/expr/expr.const/p3-0x-nowarn.cpp

10 lines
198 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wno-c++11-narrowing -verify %s
// expected-no-diagnostics
// <rdar://problem/11121178>
void f(int x) {
switch (x) {
case 0x80000001: break;
}
}