// RUN: %clang_cc1 -emit-llvm -o - -fopenmp \
// RUN: -triple i386-unknown-unknown -fopenmp-version=51 %s \
// RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-32
// RUN: %clang_cc1 -emit-llvm -o - -fopenmp \
// RUN: -triple x86_64-unknown-linux-gnu -fopenmp-version=51 %s \
// RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-64
typedef enum omp_allocator_handle_t omp_allocator_handle_t;
//
// Should allow larger alignment.
//
// CHECK: @foo_global1 = global float 0.000000e+00, align 16
float foo_global1;
// CHECK: @foo_global2 = global float 0.000000e+00, align 16
float foo_global2;
// CHECK: @foo_global3 = global float 0.000000e+00, align 16
float foo_global3;
// CHECK: @foop_global1 = global ptr null, align 16
int *foop_global1;
//
// Should use natural alignment when alignment specified is too small.
//
// CHECK: @foo_global4 = global float 0.000000e+00, align 4
float foo_global4;
// CHECK: @foo_global5 = global float 0.000000e+00, align 4
float foo_global5;
// CHECK: @foo_global6 = global float 0.000000e+00, align 4
float foo_global6;
// CHECK-32: @foop_global2 = global ptr null, align 4
// CHECK-64: @foop_global2 = global ptr null, align 8
int *foop_global2;