1 // RUN: %check_clang_tidy %s llvmlibc-restrict-system-libc-headers %t \ 2 // RUN: -- -- -isystem %S/Inputs/llvmlibc/system \ 3 // RUN: -resource-dir %S/Inputs/llvmlibc/resource 4 5 #include <stdio.h> 6 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include stdio.h not allowed 7 #include <stdlib.h> 8 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include stdlib.h not allowed 9 #include "string.h" 10 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include string.h not allowed 11 #include "stdatomic.h" 12 #include <stddef.h> 13 // Compiler provided headers should not throw warnings. 14