brintos

brintos / llvm-project-archived public Read only

0
0
Text · 339 B · 142bb94 Raw
6 lines · c
1// RUN: %clang_cc1 -fsyntax-only -std=c2x -Wpre-c2x-compat -verify=pre-c2x %s2// RUN: %clang_cc1 -fsyntax-only -std=c17 -Wc2x-extensions -verify=c2x-ext %s3 4[[]] void func(); // pre-c2x-warning {{[[]] attributes are incompatible with C standards before C23}}5                  // c2x-ext-warning@-1 {{[[]] attributes are a C23 extension}}6