blob: dbe32e64a254837e4e7fae61d52783a9a5a9c3fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
// rdar:// 8400356
struct objc_object;
void f(id ptr) { } // expected-note {{previous definition is here}}
void f(struct objc_object* ptr) { } // expected-error {{redefinition of 'f'}}
struct objc_class;
void g(Class ptr) {} // expected-note {{previous definition is here}}
void g(struct objc_class* ptr) { } // expected-error {{redefinition of 'g'}}
void h(Class ptr, struct objc_object* ptr1) {} // expected-note {{previous definition is here}}
void h(struct objc_class* ptr, id ptr1) {} // expected-error {{redefinition of 'h'}}
void i(Class ptr, struct objc_object* ptr1);
void i(struct objc_class* ptr, id ptr1) {}
void i(struct objc_class* ptr, struct objc_object* ptr1);
|