mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 01:56:07 +00:00

This reverts r371497 (git commit 3d7e9ab7b9f8c53aa41420c54970f0fb421004a2) Reorder `not` with `env` in these two tests so they pass: Driver/rewrite-map-in-diagnostics.c Index/crash-recovery-modules.m. This will not be necessary after D66531 lands. llvm-svn: 371552
37 lines
1.2 KiB
Objective-C
37 lines
1.2 KiB
Objective-C
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs %s -verify
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs -x c %s -verify
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs -x objective-c++ %s -verify
|
|
|
|
// RUN: rm -rf %t.pch.cache
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t.pch.cache -fmodules -fimplicit-module-maps -I %S/Inputs -emit-pch -o %t.pch -x objective-c-header %S/Inputs/use-builtin.h
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t.pch.cache -fmodules -fimplicit-module-maps -I %S/Inputs %s -include-pch %t.pch %s -verify
|
|
|
|
// expected-no-diagnostics
|
|
|
|
void use_constant_string_builtins1(void) {
|
|
(void)__builtin___CFStringMakeConstantString("");
|
|
(void)__builtin___NSStringMakeConstantString("");
|
|
}
|
|
|
|
#include "builtin.h"
|
|
|
|
int foo() {
|
|
return __builtin_object_size(p, 0);
|
|
}
|
|
|
|
#include "builtin_sub.h"
|
|
|
|
int bar() {
|
|
return __builtin_object_size(p, 0);
|
|
}
|
|
|
|
int baz() {
|
|
return IS_CONST(0);
|
|
}
|
|
|
|
void use_constant_string_builtins2(void) {
|
|
(void)__builtin___CFStringMakeConstantString("");
|
|
(void)__builtin___NSStringMakeConstantString("");
|
|
}
|