blob: c325c2fcf23248cf53c227463abe45148a745c11 [file] [log] [blame]
Steve Naroffb4eaf9c2008-09-02 18:50:17 +00001// 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
10void whatever() {}