12 lines · c
1#pragma GCC system_header2 3inline int system_header_func(int x)4 __attribute__((diagnose_if(x == x, "system header warning", "warning"))) // expected-note {{from 'diagnose_if' attribute}}5{6 return 0;7}8 9void test_system_header(void) {10 system_header_func(0); // expected-warning {{system header warning}}11}12