Debian Codegraph @

clang/test/SemaCXX/warn-once-on-unknown-attr.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c2x -x c %s
3 void foo() {
4 int [[attr]] i; // expected-warning {{unknown attribute 'attr' ignored}}
5 (void)sizeof(int [[attr]]); // expected-warning {{unknown attribute 'attr' ignored}}
6 }
7
8 void bar() {
9 [[attr]]; // expected-warning {{unknown attribute 'attr' ignored}}
10 [[attr]] int i; // expected-warning {{unknown attribute 'attr' ignored}}
11 }