llvm-project/clang/test/CXX/expr/expr.const/p3-0x-nowarn.cpp

10 lines
198 B
C++

// 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;
}
}