brintos

brintos / llvm-project-archived public Read only

0
0
Text · 274 B · 11e29db Raw
11 lines · c
1// RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic2 3typedef const char rchar;4int a(char* a, rchar* b) {5  return a-b;6}7 8void f0(void (*fp)(void)) {9  int x = fp - fp; // expected-warning{{arithmetic on pointers to the function type 'void (void)' is a GNU extension}}10}11