1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify -DNO_JMP_BUF %s
2 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify %s
3 
4 #ifdef NO_JMP_BUF
5 extern long setjmp(long *);   // expected-warning {{declaration of built-in function 'setjmp' requires the declaration of the 'jmp_buf' type, commonly provided in the header <setjmp.h>.}}
6 #else
7 typedef long jmp_buf;
8 extern int setjmp(char);      // expected-warning@8 {{incompatible redeclaration of library function 'setjmp'}}
9                               // expected-note@8    {{'setjmp' is a builtin with type 'int (jmp_buf)' (aka 'int (long)')}}
10 #endif
11