llvm-project/clang/test/Lexer/warn_binary_literals.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
239 B
C++
Raw Normal View History

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