blob: 53d99821ccd49eed6f63461f2371169a630d6dc4 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -Eonly -verify
Reid Spencer5f016e22007-07-11 17:01:13 +00002
3// This should not be rejected.
4#ifdef defined
5#endif
6
Chris Lattner688a2482009-03-09 20:33:32 +00007
8
9// PR3764
10
11// This should not produce a redefinition warning.
12#define FUNC_LIKE(a) (a)
13#define FUNC_LIKE(a)(a)
14
15// This either.
16#define FUNC_LIKE2(a)\
17(a)
18#define FUNC_LIKE2(a) (a)
19
20// This should.
21#define FUNC_LIKE3(a) ( a) // expected-note {{previous definition is here}}
22#define FUNC_LIKE3(a) (a) // expected-warning {{'FUNC_LIKE3' macro redefined}}
23