llvm-project/clang/test/CodeGen/2004-02-20-Builtins.c
Tex Riddell 6582785d01
Add CHECK-LABEL to avoid source tree path sensitivity in test (#112461)
The test `clang/test/CodeGen/2004-02-20-Builtins.c` will erroneously
fail if "builtin" is in the path to your source tree.

This change adds a `CHECK-LABEL !llvm.ident` after the `CHECK-NOT` to
avoid searching into the metadata containing the path.
2024-10-31 09:04:48 -07:00

12 lines
331 B
C

// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
double sqrt(double x);
// CHECK-LABEL: @zsqrtxxx
// CHECK-NOT: builtin
// Don't search into metadata definitions. !llvm.ident can contain the
// substring "builtin" if it's in the source tree path.
// CHECK-LABEL: !llvm.ident
void zsqrtxxx(float num) {
num = sqrt(num);
}