[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / Sema / pointer-subtract-compat.c
blob11e29db972bc9ace0239bec97eb5270fbc454863
1 // RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic
3 typedef const char rchar;
4 int a(char* a, rchar* b) {
5 return a-b;
8 void f0(void (*fp)(void)) {
9 int x = fp - fp; // expected-warning{{arithmetic on pointers to the function type 'void (void)' is a GNU extension}}