Douglas Gregor | 963c553 | 2013-06-21 16:28:10 +0000 | [diff] [blame] | 1 | // Test that system-headerness works for building modules. |
| 2 | |
| 3 | // RUN: rm -rf %t |
David Majnemer | c10b838 | 2015-10-08 06:31:22 +0000 | [diff] [blame] | 4 | // RUN: %clang_cc1 -triple %itanium_abi_triple -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -isystem %S/Inputs -pedantic -Werror %s -verify -std=c11 |
Douglas Gregor | 963c553 | 2013-06-21 16:28:10 +0000 | [diff] [blame] | 5 | // expected-no-diagnostics |
| 6 | |
| 7 | @import warning; |
| 8 | int i = bigger_than_int; |
Richard Smith | ef99e4d | 2014-10-03 00:31:35 +0000 | [diff] [blame] | 9 | |
| 10 | #include <stddef.h> |
| 11 | |
| 12 | #define __need_size_t |
| 13 | #include <stddef.h> |