// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-unknown-linux-gnu %s
// Correct cases.
typedef int vec_t1;
typedef int vec_t2;
typedef int vec_t3;
typedef int vec_t4;
typedef float vec_t5;
typedef float vec_t6;
typedef float vec_t7;
typedef int v8qi ;
typedef int v8qi ;
// expected-warning@-1{{specifying vector types with the 'mode' attribute is deprecated; use the 'vector_size' attribute instead}}
typedef float v4sf ;
// expected-warning@-1{{specifying vector types with the 'mode' attribute is deprecated; use the 'vector_size' attribute instead}}
typedef float v4sf ;
// Incorrect cases.
typedef float vec_t8;
// expected-error@-1{{unsupported machine mode 'QC'}}
// expected-error@-2{{type of machine mode does not match type of base type}}
typedef _Complex float vec_t9;
// expected-error@-1{{invalid vector element type '_Complex float'}}
typedef int vec_t10;
// expected-error@-1{{type of machine mode does not match type of base type}}
// expected-error@-2{{type of machine mode does not support base vector types}}
typedef float vec_t11;
// expected-error@-1{{type of machine mode does not match type of base type}}
// expected-error@-2{{type of machine mode does not support base vector types}}
typedef _Complex float vec_t12;
// expected-error@-1{{invalid vector element type '_Complex float'}}
typedef int v3qi;
// expected-error@-1{{unknown machine mode 'V3QI'}}