blob: a4d344579870b61ada9446e0afd6440640360d62 [file] [log] [blame]
; 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 i8* @b(i8* %a) {
ret i8* %a
}