blob: 00c9b8735f346636b0b9c7aa189d29fce1f9c24c [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -verify -pedantic %s
Steve Naroffb4eaf9c2008-09-02 18:50:17 +00002
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() {}