You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidfrom_pch(int); // expected-error {{conflicting types for 'from_pch'}}
17
+
// expected-note@-6 {{previous declaration is here}}
18
+
void (*pf_plain)(int) =from_pch; // expected-error {{incompatible function pointer types initializing 'void (*)(int)' with an expression of type 'void (int) __attribute__((tiflags))'}}
void __attribute__((tiflags)) redecl(int); // expected-note {{previous declaration is here}}
4
+
voidredecl(int); // expected-error {{conflicting types for 'redecl'}}
5
+
6
+
void __attribute__((tiflags)) only_ti(int);
7
+
8
+
void (__attribute__((cdecl)) *p1)(int) =only_ti; // expected-error {{incompatible function pointer types initializing 'void (*)(int) __attribute__((cdecl))' with an expression of type 'void (int) __attribute__((tiflags))'}}
9
+
void (*p2)(int) =only_ti; // expected-error {{incompatible function pointer types initializing 'void (*)(int)' with an expression of type 'void (int) __attribute__((tiflags))'}}
void (*np2)() = (void (__attribute__((tiflags)) *)())0; // expected-error {{incompatible function pointer types initializing 'void (*)()' with an expression of type 'void (*)() __attribute__((tiflags))'}}
0 commit comments