blob: 9aebe9cdcebb8248136435cc17081ce0849bcd89 [file] [log] [blame]
Eli Friedmanf1c7b482008-09-02 05:09:35 +00001// RUN: clang %s -fsyntax-only -verify -pedantic
2
3typedef const char rchar;
4int a(char* a, rchar* b) {
5 return a-b;
6}
Douglas Gregor08048882009-01-23 19:03:35 +00007
8// <rdar://problem/6520707>
9void f0(void (*fp)(void)) {
10 int x = fp - fp; // expected-warning{{arithmetic on pointer to function type 'void (*)(void)' is a GNU extension}}
11}