aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/extension-warning.c
blob: 00c9b8735f346636b0b9c7aa189d29fce1f9c24c (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang-cc -fsyntax-only -verify -pedantic %s

// The preprocessor shouldn't warn about extensions within macro bodies that
// aren't expanded.
#define __block __attribute__((__blocks__(byref)))

// This warning is entirely valid.
__block int x; // expected-warning{{extension used}}

void whatever() {}