| 1 |
// RUN: %clang_cc1 %s -verify -ast-dump | FileCheck %s |
| 2 |
|
| 3 |
// expected-no-diagnostics |
| 4 |
|
| 5 |
// CHECK: ExtVectorType {{.*}} 'int __attribute__((ext_vector_type(4)))' 4 |
| 6 |
// CHECK-NEXT: BuiltinType {{.*}} 'int' |
| 7 |
int x __attribute__((ext_vector_type(4))); |
| 8 |
using ExtVecType = decltype(x); |
| 9 |
|
| 10 |
// CHECK: FunctionDecl {{.*}} 'int () __attribute__((ext_vector_type(4)))' |
| 11 |
int __attribute__((ext_vector_type(4))) foo() { return x; } |
| 12 |
// CHECK: CompoundStmt |
| 13 |
// CHECK-NEXT: ReturnStmt |
| 14 |
// 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)))' |