Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify -pedantic %s |
Steve Naroff | b4eaf9c | 2008-09-02 18:50:17 +0000 | [diff] [blame] | 2 | |
3 | // The preprocessor shouldn't warn about extensions within macro bodies that | ||||
4 | // aren't expanded. | ||||
5 | #define __block __attribute__((__blocks__(byref))) | ||||
6 | |||||
7 | // This warning is entirely valid. | ||||
8 | __block int x; // expected-warning{{extension used}} | ||||
9 | |||||
10 | void whatever() {} |