PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-choose-expr-2.c
blobd986b405ff03f7ab63c62dad67cc5cf16b9d5277
1 /* Test diagnostic for invalid use of __builtin_choose_expr. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
6 int a, b, c, d;
8 void
9 f (void)
11 a = __builtin_choose_expr (b, c, d); /* { dg-error "first argument to '__builtin_choose_expr' not a constant" } */