aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/ast-print-openacc-init-construct.cpp
blob: e77d544944191a2808b974c953bd251b257f1738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s

unsigned Int;

void uses() {
// CHECK: #pragma acc init device_type(*) device_num(Int) if(Int == 5)
#pragma acc init device_type(*) device_num(Int) if (Int == 5)
// CHECK: #pragma acc init device_type(*) device_num(Int)
#pragma acc init device_type(*) device_num(Int)
// CHECK: #pragma acc init device_type(*) if(Int == 5)
#pragma acc init device_type(*) if (Int == 5)
// CHECK: #pragma acc init device_type(radeon)
#pragma acc init device_type(radeon)
}