xref: /llvm-project/clang/test/CodeGenOpenCL/lifetime.cl (revision aae20a7421c5393316c25a8b614b370859c1a18f)
1// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck %s -check-prefix=AMDGCN
3
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.p0
13// AMDGCN: @llvm.lifetime.start.p5
14  helper_no_markers();
15}
16