diff options
author | dim <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
commit | 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df (patch) | |
tree | a9243275843fbeaa590afc07ee888e006b8d54ea /test/Sema/bitfield-promote-int-16bit.c | |
parent | 69b4eca4a4255ba43baa5c1d9bbdec3ec17f479e (diff) | |
download | FreeBSD-src-39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df.zip FreeBSD-src-39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df.tar.gz |
Vendor import of clang trunk r126079:
http://llvm.org/svn/llvm-project/cfe/trunk@126079
Diffstat (limited to 'test/Sema/bitfield-promote-int-16bit.c')
-rw-r--r-- | test/Sema/bitfield-promote-int-16bit.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/Sema/bitfield-promote-int-16bit.c b/test/Sema/bitfield-promote-int-16bit.c deleted file mode 100644 index cd9adcf..0000000 --- a/test/Sema/bitfield-promote-int-16bit.c +++ /dev/null @@ -1,25 +0,0 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s -triple pic16-unknown-unknown - -// Check that int-sized unsigned bit-fields promote to unsigned int -// on targets where sizeof(unsigned short) == sizeof(unsigned int) - -enum E { ec1, ec2, ec3 }; -struct S { - enum E e : 16; - unsigned short us : 16; - unsigned long ul1 : 8; - unsigned long ul2 : 16; -} s; - -__typeof(s.e + s.e) x_e; -unsigned x_e; - -__typeof(s.us + s.us) x_us; -unsigned x_us; - -__typeof(s.ul1 + s.ul1) x_ul1; -signed x_ul1; - -__typeof(s.ul2 + s.ul2) x_ul2; -unsigned x_ul2; - |