brintos

brintos / llvm-project-archived public Read only

0
0
Text · 574 B · f11df55 Raw
16 lines · cpp
1// Test without serialization:2// RUN: %clang_cc1 %s -ast-dump | FileCheck %s3//4// Test with serialization:5// RUN: %clang_cc1 -emit-pch -o %t %s6// RUN: %clang_cc1 -x c++ -include-pch %t -ast-dump-all /dev/null \7// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \8// RUN: | FileCheck %s9 10struct B { _Alignas(64) struct { int b; };   };11 12// CHECK:  | `-AlignedAttr {{.*}} <col:12> _Alignas13// CHECK-NEXT:  |   `-ConstantExpr {{.*}} <col:21> 'int'14// CHECK-NEXT:  |     |-value: Int 6415// CHECK-NEXT:  |     `-IntegerLiteral {{.*}} <col:21> 'int' 6416