Skip to content

Commit 7577284

Browse files
committed
[OpenACC][NFC] Update varlist-ast test to check serialization
I noticed while working on another test that I never used the PCH trickery to get this to validate that serialization/deserialization works correctly. It DOES, but we weren't testing it with this test like the others.
1 parent b214ca8 commit 7577284

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

clang/test/SemaOpenACC/compute-construct-varlist-ast.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
// RUN: %clang_cc1 %s -fopenacc -Wno-openacc-deprecated-clause-alias -ast-dump | FileCheck %s
22

3+
// Test this with PCH.
4+
// RUN: %clang_cc1 %s -fopenacc -emit-pch -Wno-openacc-deprecated-clause-alias -o %t %s
5+
// RUN: %clang_cc1 %s -fopenacc -include-pch %t -Wno-openacc-deprecated-clause-alias -ast-dump-all | FileCheck %s
6+
7+
#ifndef PCH_HELPER
8+
#define PCH_HELPER
9+
310
int Global;
411
short GlobalArray[5];
512

@@ -435,7 +442,7 @@ void TemplUses(T t, U u, T*PointerParam) {
435442
// CHECK-NEXT: TemplateArgument type 'int'
436443
// CHECK-NEXT: BuiltinType{{.*}} 'int'
437444
// CHECK-NEXT: TemplateArgument type 'int[1]'
438-
// CHECK-NEXT: ConstantArrayType{{.*}} 'int[1]' 1
445+
// CHECK-NEXT: ConstantArrayType{{.*}} 'int[1]'{{.*}} 1
439446
// CHECK-NEXT: BuiltinType{{.*}} 'int'
440447
// CHECK-NEXT: ParmVarDecl{{.*}} used t 'int'
441448
// CHECK-NEXT: ParmVarDecl{{.*}} used u 'int *'
@@ -979,3 +986,4 @@ void Inst() {
979986
STempl<int> stempl;
980987
stempl.bar<int>();
981988
}
989+
#endif

0 commit comments

Comments
 (0)