1 // RUN: %clang_cc1 -triple x86_64-unk-unk -o %t -emit-llvm -g %s 2 // RUN: FileCheck --input-file=%t %s 3 4 // PR3023 convert(void)5void convert(void) { 6 struct { typeof(0) f0; } v0; 7 } 8 9 10 // PR2784 11 struct OPAQUE; 12 typedef struct OPAQUE *PTR; 13 PTR p; 14 15 16 // PR2950 17 struct s0; 18 struct s0 { struct s0 *p; } g0; 19 f0(struct s0 * a0)20struct s0 *f0(struct s0 *a0) { 21 return a0->p; 22 } 23 24 25 // PR3134 26 char xpto[]; 27 28 29 // PR3427 30 struct foo { 31 int a; 32 void *ptrs[]; 33 }; 34 struct foo bar; 35 36 37 // PR4143 38 struct foo2 { 39 enum bar *bar; 40 }; 41 42 struct foo2 foo2; 43 44 45 // Radar 7325611 46 // CHECK: "barfoo" 47 typedef int barfoo; foo()48barfoo foo() { 49 } 50 51 // CHECK: __uint128_t foo128()52__uint128_t foo128 () 53 { 54 __uint128_t int128 = 44; 55 return int128; 56 } 57 58 // CHECK: uint64x2_t 59 typedef unsigned long long uint64_t; 60 typedef uint64_t uint64x2_t __attribute__((ext_vector_type(2))); 61 uint64x2_t extvectbar[4]; 62