Files
clang-p2996/clang/test/CodeGen/PR44896.ll
Nikita Popov 39db5e1ed8 [CodeGen] Convert tests to opaque pointers (NFC)
Conversion performed using the script at:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

These are only tests where no manual fixup was required.
2022-10-07 14:22:00 +02:00

16 lines
561 B
LLVM

; RUN: %clang -fdiscard-value-names -S %s -o /dev/null 2>&1 | FileCheck --check-prefix=WARNING %s
; RUN: %clang -S %s -o /dev/null 2>&1 | FileCheck --check-prefix=NOWARNING %s
; RUN: %clang_cc1 -S -emit-llvm %s -discard-value-names -o /dev/null
; PR 44896
; WARNING: ignoring -fdiscard-value-names for LLVM Bitcode
; NOWARNING-NOT: ignoring -fdiscard-value-names for LLVM Bitcode
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64--linux-gnu"
define linkonce ptr @b(ptr %a) {
ret ptr %a
}