[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / AST / pr43983.cpp
blobc27d825dbb1b07a086e5c1a9d0359ab1a8349e20
1 // Test without serialization:
2 // RUN: %clang_cc1 -fsyntax-only %s -ast-dump | FileCheck %s
3 //
4 // Test with serialization:
5 // RUN: %clang_cc1 -emit-pch -o %t %s
6 // 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 %s
10 struct B { _Alignas(64) struct { int b; }; };
12 // CHECK: | `-AlignedAttr {{.*}} <col:12> _Alignas
13 // CHECK-NEXT: | `-ConstantExpr {{.*}} <col:21> 'int'
14 // CHECK-NEXT: | |-value: Int 64
15 // CHECK-NEXT: | `-IntegerLiteral {{.*}} <col:21> 'int' 64