16 lines · cpp
1// RUN: %clang_cc1 %s -verify -ast-dump | FileCheck %s2 3// expected-no-diagnostics4 5// CHECK: ExtVectorType {{.*}} 'int __attribute__((ext_vector_type(4)))' 46// CHECK-NEXT: BuiltinType {{.*}} 'int'7int x __attribute__((ext_vector_type(4)));8using ExtVecType = decltype(x);9 10// CHECK: FunctionDecl {{.*}} 'int () __attribute__((ext_vector_type(4)))'11int __attribute__((ext_vector_type(4))) foo() { return x; }12// CHECK: CompoundStmt13// CHECK-NEXT: ReturnStmt14// CHECK-NEXT: ImplicitCastExpr {{.*}} 'int __attribute__((ext_vector_type(4)))' <LValueToRValue>15// CHECK-NEXT: DeclRefExpr {{.*}} 'int __attribute__((ext_vector_type(4)))' lvalue Var {{.*}} 'x' 'int __attribute__((ext_vector_type(4)))'16