summaryrefslogtreecommitdiff
path: root/clang/test/AST/ast-print-openacc-loop-construct.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/AST/ast-print-openacc-loop-construct.cpp')
-rw-r--r--clang/test/AST/ast-print-openacc-loop-construct.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/AST/ast-print-openacc-loop-construct.cpp b/clang/test/AST/ast-print-openacc-loop-construct.cpp
index 519825b89e32..cde302a66f3a 100644
--- a/clang/test/AST/ast-print-openacc-loop-construct.cpp
+++ b/clang/test/AST/ast-print-openacc-loop-construct.cpp
@@ -48,4 +48,13 @@ void foo() {
// CHECK-NEXT: ;
#pragma acc loop auto
for(;;);
+
+ int i;
+ float array[5];
+
+// CHECK: #pragma acc loop private(i, array[1], array, array[1:2])
+// CHECK-NEXT: for (;;)
+// CHECK-NEXT: ;
+#pragma acc loop private(i, array[1], array, array[1:2])
+ for(;;);
}