xref: /aosp_15_r20/external/clang/test/Modules/system_headers.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// Test that system-headerness works for building modules.
2*67e74705SXin Li
3*67e74705SXin Li// RUN: rm -rf %t
4*67e74705SXin Li// 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
5*67e74705SXin Li// expected-no-diagnostics
6*67e74705SXin Li
7*67e74705SXin Li@import warning;
8*67e74705SXin Liint i = bigger_than_int;
9*67e74705SXin Li
10*67e74705SXin Li#include <stddef.h>
11*67e74705SXin Li
12*67e74705SXin Li#define __need_size_t
13*67e74705SXin Li#include <stddef.h>
14