Matt Beaumont-Gay | 8ef8f43 | 2011-12-12 22:35:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -isystem %S/Inputs -verify %s |
2 | #include <array-bounds-system-header.h> | ||||
3 | void test_system_header_macro() { | ||||
4 | BAD_MACRO_1; // no-warning | ||||
5 | char a[3]; // expected-note 2 {{declared here}} | ||||
6 | BAD_MACRO_2(a, 3); // expected-warning {{array index 3}} | ||||
7 | QUESTIONABLE_MACRO(a); | ||||
8 | NOP(a[3] = 5); // expected-warning {{array index 3}} | ||||
9 | } |