Debian Codegraph @

clang/test/SemaCXX/diagnose_if-ext.cpp

raw
1 // RUN: %clang_cc1 -Wpedantic -fsyntax-only %s -verify
2 // RUN: %clang_cc1 -Wpedantic -fsyntax-only %s -verify -fexperimental-new-constant-interpreter
3
4 void foo() __attribute__((diagnose_if(1, "", "error"))); // expected-warning{{'diagnose_if' is a clang extension}}
5 void foo(int a) __attribute__((diagnose_if(a, "", "error"))); // expected-warning{{'diagnose_if' is a clang extension}}
6 // FIXME: When diagnose_if gets a CXX11 spelling, this should be enabled.
7 #if 0
8 [[clang::diagnose_if(a, "", "error")]] void foo(double a);
9 #endif