Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify -rewrite-macros -o %t %s |
Daniel Dunbar | 5186906 | 2008-10-05 01:39:04 +0000 | [diff] [blame] | 2 | |
3 | #define A(a,b) a ## b | ||||
4 | |||||
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: grep '12 */\*A\*/ /\*(1,2)\*/' %t |
Daniel Dunbar | 5186906 | 2008-10-05 01:39:04 +0000 | [diff] [blame] | 6 | A(1,2) |
7 | |||||
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 8 | // RUN: grep '/\*_Pragma("mark")\*/' %t |
Daniel Dunbar | 5186906 | 2008-10-05 01:39:04 +0000 | [diff] [blame] | 9 | _Pragma("mark") |
10 | |||||
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 11 | // RUN: grep "//#warning eek" %t |
Ted Kremenek | 34a2c42 | 2012-02-02 00:16:13 +0000 | [diff] [blame] | 12 | /* expected-warning {{eek}} */ #warning eek |
Daniel Dunbar | 5186906 | 2008-10-05 01:39:04 +0000 | [diff] [blame] | 13 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 14 | // RUN: grep "//#pragma mark mark" %t |
Daniel Dunbar | 5186906 | 2008-10-05 01:39:04 +0000 | [diff] [blame] | 15 | #pragma mark mark |
16 | |||||
Daniel Dunbar | 5186906 | 2008-10-05 01:39:04 +0000 | [diff] [blame] | 17 |