diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-04-16 21:22:58 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-04-16 21:22:58 +0000 |
| commit | 5e39c97ba05b7f8e121822d34dcdb8f1e4e721a7 (patch) | |
| tree | ae433be348ca28634ddffa88434704677c820f43 /llvm | |
| parent | e54ef7a8fbdc8f405e6ba62c5f2dcec744509968 (diff) | |
| download | bcm5719-llvm-5e39c97ba05b7f8e121822d34dcdb8f1e4e721a7.tar.gz bcm5719-llvm-5e39c97ba05b7f8e121822d34dcdb8f1e4e721a7.zip | |
We shouldn't have tests for features we don't have yet.
llvm-svn: 36167
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/CFrontend/bit-accurate-int.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/llvm/test/CFrontend/bit-accurate-int.c b/llvm/test/CFrontend/bit-accurate-int.c deleted file mode 100644 index 868ca953c6d..00000000000 --- a/llvm/test/CFrontend/bit-accurate-int.c +++ /dev/null @@ -1,35 +0,0 @@ -// RUN: ignore %llvmgcc -S %s -o - /dev/null |& not grep warning -// XFAIL: * - -#define ATTR_BITS(N) __attribute__((bitwidth(N))) - -typedef int ATTR_BITS( 4) My04BitInt; -typedef int ATTR_BITS(16) My16BitInt; -typedef int ATTR_BITS(17) My17BitInt; -typedef int ATTR_BITS(37) My37BitInt; -typedef int ATTR_BITS(65) My65BitInt; - -struct MyStruct { - My04BitInt i4Field; - short ATTR_BITS(12) i12Field; - long ATTR_BITS(17) i17Field; - My37BitInt i37Field; -}; - -My37BitInt doit( short ATTR_BITS(23) num) { - My17BitInt i; - struct MyStruct strct; - int bitsize1 = sizeof(My17BitInt); - int __attribute__((bitwidth(9))) j; - int bitsize2 = sizeof(j); - int result = bitsize1 + bitsize2; - strct.i17Field = result; - result += sizeof(struct MyStruct); - return result; -} - -int -main ( int argc, char** argv) -{ - return (int ATTR_BITS(32)) doit((short ATTR_BITS(23))argc); -} |

