mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 02:06:06 +00:00

Binary literals predate C++14, but they are listed as a C++14 extension since this was the first time they were standardized in the language. Move the warning into a subgroup so it can be selectively disabled when checking for other C++14 features. llvm-svn: 248064
6 lines
239 B
C++
6 lines
239 B
C++
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s -Wc++14-binary-literal
|
|
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s -Wc++14-extensions
|
|
|
|
int x = 0b11;
|
|
// expected-warning@-1{{binary integer literals are a C++14 extension}}
|