Files
llvm-project/clang/test/Sema/pointer-subtract-compat.c
Eli Friedman e7175d83dc Make sure to take the unqualified versions of the canonical types for
type-checking pointer subtraction; if the canonical types aren't used,
the qualifiers won't always get stripped off correctly.

llvm-svn: 55620
2008-09-02 05:09:35 +00:00

7 lines
119 B
C

// RUN: clang %s -fsyntax-only -verify -pedantic
typedef const char rchar;
int a(char* a, rchar* b) {
return a-b;
}