1 // "System header" for testing that -Wunused-value is properly suppressed in 2 // certain cases. 3 4 #define POSSIBLY_BAD_MACRO(x) \ 5 { int i = x; \ 6 i; } 7 8 #define STATEMENT_EXPR_MACRO(x) \ 9 (__extension__ \ 10 ({int i = x; \ 11 i;})) 12 13 #define COMMA_MACRO_1(x, y) \ 14 {x, y;} 15 16 #define COMMA_MACRO_2(x, y) \ 17 if (x) { 1 == 2, y; } 18 19 #define COMMA_MACRO_3(x, y) \ 20 (x, y) 21 22 #define COMMA_MACRO_4(x, y) \ 23 ( 1 == 2, y ) 24