brintos

brintos / llvm-project-archived public Read only

0
0
Text · 525 B · b518658 Raw
10 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify=expected,c -pedantic %s2// RUN: %clang_cc1 -x c++ -std=c++98 -fsyntax-only -verify=expected,cpp %s3// RUN: %clang_cc1 -x c++ -std=c++11 -fsyntax-only -verify=expected,cpp %s4 5enum shiftof {6    X = (1<<32) // c-warning {{expression is not an integer constant expression; folding it to a constant is a GNU extension}}7                // cpp-error@-1 {{expression is not an integral constant expression}}8                // expected-note@-2 {{shift count 32 >= width of type 'int'}}9};10