typeof-bad.c 370 B

123456789101112131415161718
  1. static typeof(undef) a;
  2. static int foo(void)
  3. {
  4. return a;
  5. }
  6. /*
  7. * check-name: typeof-bad
  8. *
  9. * check-error-start
  10. typeof-bad.c:1:15: error: undefined identifier 'undef'
  11. typeof-bad.c:5:16: warning: incorrect type in return expression (different base types)
  12. typeof-bad.c:5:16: expected int
  13. typeof-bad.c:5:16: got bad type static [toplevel] a
  14. * check-error-end
  15. */