Steve Naroff | b4eaf9c | 2008-09-02 18:50:17 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify -pedantic %s |
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() {} |