blob: ed9f32fde933b5de98b0ed07e3ecde1f88eccf31 [file] [log] [blame]
Yaxun Liu7f7f3232017-04-17 20:03:11 +00001// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
Yaxun Liuf8ad59d2018-02-15 19:12:41 +00002// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck %s -check-prefix=AMDGCN
Yaxun Liu7f7f3232017-04-17 20:03:11 +00003
4void use(char *a);
5
6__attribute__((always_inline)) void helper_no_markers() {
7 char a;
8 use(&a);
9}
10
11void lifetime_test() {
12// CHECK: @llvm.lifetime.start.p0i
Yaxun Liuf8ad59d2018-02-15 19:12:41 +000013// AMDGCN: @llvm.lifetime.start.p5i
Yaxun Liu7f7f3232017-04-17 20:03:11 +000014 helper_no_markers();
15}