[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / Inputs / diagnose-if-warn-system-header.h
blob5183d785e5cb981fe8ce6b287182ce75fa38099b
1 #pragma GCC system_header
3 inline int system_header_func(int x)
4 __attribute__((diagnose_if(x == x, "system header warning", "warning"))) // expected-note {{from 'diagnose_if' attribute}}
6 return 0;
9 void test_system_header(void) {
10 system_header_func(0); // expected-warning {{system header warning}}