[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git] / clang / test / CodeGen / const-label-addr.c
blobedfff0f8f639901f7fb74032f62b6bf3b8fdca82
1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2 // REQUIRES: asserts
4 // CHECK: @a.a = internal global ptr blockaddress(@a, %A)
5 int a(void) {
6 A:;static void* a = &&A;
9 // PR14005
10 // CHECK: @b.ar = internal global {{.*}} sub (i{{..}} ptrtoint (ptr blockaddress(@b, %l2) to i{{..}}), i{{..}} ptrtoint (ptr blockaddress(@b, %l1) to i{{..}}))
11 int b(void) {
12 static int ar = &&l2 - &&l1;
13 l1:
14 return 10;
15 l2:
16 return 11;