brintos

brintos / llvm-project-archived public Read only

0
0
Text · 892 B · e7b749c Raw
14 lines · c
1// RUN: %clang_cc1 -x c -fsyntax-only -verify=expected,c -pedantic %s2// RUN: %clang_cc1 -x c++ -fsyntax-only -verify=expected,cpp -Wshift-negative-value %s3// RUN: %clang_cc1 -x c++ -fsyntax-only -verify=expected,cpp -Wall %s4// RUN: %clang_cc1 -x c++ -std=c++98 -fsyntax-only -verify=expected,cpp -Wshift-negative-value %s5// RUN: %clang_cc1 -x c++ -std=c++98 -fsyntax-only -verify=expected,cpp -Wall %s6// RUN: %clang_cc1 -x c++ -std=c++11 -fsyntax-only -verify=expected,cpp -Wshift-negative-value %s7// RUN: %clang_cc1 -x c++ -std=c++11 -fsyntax-only -verify=expected,cpp -Wall %s8 9enum shiftof {10    X = (-1<<29) // c-warning {{expression is not an integer constant expression; folding it to a constant is a GNU extension}}11                 // cpp-error@-1 {{expression is not an integral constant expression}}12                 // expected-note@-2 {{left shift of negative value -1}}13};14