• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -module-summary -o %t %s
2; RUN: opt -module-summary -o %t2 %S/Inputs/dead-strip-alias.ll
3; RUN: llvm-lto2 run %t -r %t,main,px -r %t,alias,p -r %t,external, \
4; RUN:               %t2 -r %t2,external,p \
5; RUN: -save-temps -o %t3
6; RUN: llvm-nm %t3.2 | FileCheck %s
7
8; CHECK: D external
9
10target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
11target triple = "x86_64-unknown-linux-gnu"
12
13@alias = alias i8*, i8** @internal
14
15@internal = internal global i8* @external
16@external = external global i8
17
18define i8** @main() {
19  ret i8** @alias
20}
21