llvm-project/clang/test/AST/alignas_maybe_odr_cleanup.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
451 B
C++
Raw Normal View History

// RUN: %clang_cc1 -fsyntax-only %s -ast-dump | FileCheck %s
struct FOO {
static const int vec_align_bytes = 32;
void foo() {
double a alignas(vec_align_bytes);
;
}
};
// CHECK: AlignedAttr {{.*}} alignas
// CHECK: ConstantExpr {{.+}} 'int' Int: 32
// CHECK: ImplicitCastExpr {{.*}} 'int' <LValueToRValue>
// CHECK: DeclRefExpr {{.*}} 'const int' lvalue Var {{.*}} 'vec_align_bytes' 'const int' non_odr_use_constant
// CHECK: NullStmt