[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenOpenCL / lifetime.cl
blobc016835d48af37bc81f87723961a1354ba393af8
1 // RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -o - -triple amdgcn %s | FileCheck %s -check-prefix=AMDGCN
4 void use(char *a);
6 __attribute__((always_inline)) void helper_no_markers() {
7 char a;
8 use(&a);
11 void lifetime_test() {
12 // CHECK: @llvm.lifetime.start.p0i
13 // AMDGCN: @llvm.lifetime.start.p5i
14 helper_no_markers();