[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaOpenCL / multistep-explicit-cast.cl
blob5e3d12a0e449a285b4d4dc60acb06ec698a45031
1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -fsyntax-only -ast-dump %s | FileCheck %s
2 // expected-no-diagnostics
4 typedef __attribute__((ext_vector_type(2))) char char2;
6 void vectorIncrementDecrementOps() {
7 // CHECK: FunctionDecl {{.*}} <{{.*}}, line:{{.*}}> line:{{.*}} vectorIncrementDecrementOps 'void (void)'{{$}}
8 // CHECK: CStyleCastExpr {{.*}} <col:{{.*}}> 'char2':'char __attribute__((ext_vector_type(2)))' <VectorSplat>{{$}}
9 // CHECK-NEXT: ImplicitCastExpr {{.*}} <col:{{.*}}> 'char' <IntegralCast> part_of_explicit_cast{{$}}
10 // CHECK-NEXT: IntegerLiteral {{.*}} <col:{{.*}}> 'int' 1{{$}}
11 char2 A = (char2)(1);
12 A++;