1*8fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -fsyntax-only -verify %s 285e9b433SChris Lattner test1(int * a)385e9b433SChris Lattnerint *test1(int *a) { return a + 1; } test2(int * a)485e9b433SChris Lattnerint *test2(int *a) { return 1 + a; } test3(int * a)585e9b433SChris Lattnerint *test3(int *a) { return a - 1; } test4(int * a,int * b)685e9b433SChris Lattnerint test4(int *a, int *b) { return a - b; } 785e9b433SChris Lattner test5(int * a,int * b)885e9b433SChris Lattnerint test5(int *a, int *b) { return a + b; } /* expected-error {{invalid operands}} */ test6(int * a)985e9b433SChris Lattnerint *test6(int *a) { return 1 - a; } /* expected-error {{invalid operands}} */ 10