blob: b155bfcb8293d0298e051af4e5e02d6a31a0d9d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
; 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
}
|