summaryrefslogtreecommitdiffstats
path: root/clang/test/Coverage/c-language-features.inc
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-24 02:38:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-24 02:38:23 +0000
commitbf1fe8c36c9cba6782990bd291220c92cfa5a82c (patch)
tree4532162f8ae58d574e53deb6b1d5e67f1572cd33 /clang/test/Coverage/c-language-features.inc
parenta45cf5b6b0790e829ad47cf946c149d8f1007324 (diff)
downloadbcm5719-llvm-bf1fe8c36c9cba6782990bd291220c92cfa5a82c.tar.gz
bcm5719-llvm-bf1fe8c36c9cba6782990bd291220c92cfa5a82c.zip
Support member reference on ?: of struct type.
llvm-svn: 67603
Diffstat (limited to 'clang/test/Coverage/c-language-features.inc')
-rw-r--r--clang/test/Coverage/c-language-features.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/Coverage/c-language-features.inc b/clang/test/Coverage/c-language-features.inc
index 6a475d6c2fd..656e8fe0c62 100644
--- a/clang/test/Coverage/c-language-features.inc
+++ b/clang/test/Coverage/c-language-features.inc
@@ -128,16 +128,32 @@ void f4(int a0, int a1, int a2, va_list ap) {
struct { char f0[10]; } *t28;
int t29 = t28 - t28;
char *t30 = &t28->f0[1];
+
+ struct s1 { int f0; };
+ struct s1 t31_a, t31_b;
+ int t31_cond;
+ int t31 = (t31_cond ? t31_a : t31_b).f0;
+
+ _Complex float t32_a, t32_b;
+ int t32_cond;
+ int t32 = __real (t32_cond ? t32_a : t32_b);
}
// Extended vectors
+typedef __attribute__((ext_vector_type(2))) float float2;
typedef __attribute__((ext_vector_type(4))) float float4;
void f5() {
float4 t0 = (float4) { 0, 1, 2, 3 };
float4 t1 = t0;
t0.lo.even = t1.hi.x;
+
+ // irgen doesn't support this yet.
+#if 0
+ int t2_cond;
+ float2 t2 = (t2_cond ? t0 : t1).lo;
+#endif
}
void f6() {
OpenPOWER on IntegriCloud