1 // RUN: %clang_cc1 %s -fsyntax-only -verify 2 // rdar://10095762 3 4 typedef void (*Fn_noret)(void) __attribute__((noreturn)); 5 typedef void (*Fn_ret)(void); 6 7 void foo(void); 8 void foo_noret(void) __attribute__((noreturn)); 9 10 void test() { 11 Fn_noret fn2 = &foo; // expected-warning {{incompatible pointer types initializing 'Fn_noret'}} 12 Fn_noret fn3 = &foo_noret; 13 Fn_ret fn4 = &foo_noret; 14 Fn_ret fn5 = &foo; 15 } 16 17