Index: test/Driver/asmjs-unknown-emscripten.cpp |
diff --git a/test/Driver/asmjs-unknown-emscripten.cpp b/test/Driver/asmjs-unknown-emscripten.cpp |
deleted file mode 100644 |
index 8a8df4c9fed2abce5863990f477155a764417f8e..0000000000000000000000000000000000000000 |
--- a/test/Driver/asmjs-unknown-emscripten.cpp |
+++ /dev/null |
@@ -1,141 +0,0 @@ |
-// RUN: %clang -target asmjs-unknown-emscripten -### %s -emit-llvm-only -c 2>&1 | FileCheck %s -check-prefix=ECHO |
-// RUN: %clang -target asmjs-unknown-emscripten %s -emit-llvm -S -c -o - | FileCheck %s |
-// RUN: %clang -target asmjs-unknown-emscripten %s -emit-llvm -S -c -pthread -o - | FileCheck %s -check-prefix=THREADS |
- |
-// ECHO: {{.*}} "-cc1" {{.*}}asmjs-unknown-emscripten.c |
- |
-typedef __builtin_va_list va_list; |
-typedef __SIZE_TYPE__ size_t; |
-typedef __PTRDIFF_TYPE__ ptrdiff_t; |
- |
-extern "C" { |
- |
-// CHECK: @align_c = global i32 1 |
-int align_c = __alignof(char); |
- |
-// CHECK: @align_s = global i32 2 |
-int align_s = __alignof(short); |
- |
-// CHECK: @align_i = global i32 4 |
-int align_i = __alignof(int); |
- |
-// CHECK: @align_l = global i32 4 |
-int align_l = __alignof(long); |
- |
-// CHECK: @align_ll = global i32 8 |
-int align_ll = __alignof(long long); |
- |
-// CHECK: @align_p = global i32 4 |
-int align_p = __alignof(void*); |
- |
-// CHECK: @align_f = global i32 4 |
-int align_f = __alignof(float); |
- |
-// CHECK: @align_d = global i32 8 |
-int align_d = __alignof(double); |
- |
-// CHECK: @align_ld = global i32 8 |
-int align_ld = __alignof(long double); |
- |
-// CHECK: @align_vl = global i32 4 |
-int align_vl = __alignof(va_list); |
- |
-// CHECK: __LITTLE_ENDIAN__defined |
-#ifdef __LITTLE_ENDIAN__ |
-void __LITTLE_ENDIAN__defined() {} |
-#endif |
- |
-// CHECK: __asmjs__defined |
-#ifdef __asmjs__ |
-void __asmjs__defined() {} |
-#endif |
- |
-// CHECK: EMSCRIPTENdefined |
-#ifdef EMSCRIPTEN |
-void EMSCRIPTENdefined() {} |
-#endif |
- |
-// CHECK: __EMSCRIPTEN__defined |
-#ifdef __EMSCRIPTEN__ |
-void __EMSCRIPTEN__defined() {} |
-#endif |
- |
-// CHECK: unixdefined |
-#ifdef unix |
-void unixdefined() {} |
-#endif |
- |
-// CHECK: _GNU_SOURCEdefined |
-#ifdef _GNU_SOURCE |
-void _GNU_SOURCEdefined() {} |
-#endif |
- |
-// THREADS: _REENTRANTdefined |
-// CHECK: _REENTRANTundefined |
-#ifdef _REENTRANT |
-void _REENTRANTdefined() {} |
-#else |
-void _REENTRANTundefined() {} |
-#endif |
- |
-// Check types |
- |
-// CHECK: signext i8 @check_char() |
-char check_char() { return 0; } |
- |
-// CHECK: signext i16 @check_short() |
-short check_short() { return 0; } |
- |
-// CHECK: i32 @check_int() |
-int check_int() { return 0; } |
- |
-// CHECK: i32 @check_long() |
-long check_long() { return 0; } |
- |
-// CHECK: i64 @check_longlong() |
-long long check_longlong() { return 0; } |
- |
-// CHECK: zeroext i8 @check_uchar() |
-unsigned char check_uchar() { return 0; } |
- |
-// CHECK: zeroext i16 @check_ushort() |
-unsigned short check_ushort() { return 0; } |
- |
-// CHECK: i32 @check_uint() |
-unsigned int check_uint() { return 0; } |
- |
-// CHECK: i32 @check_ulong() |
-unsigned long check_ulong() { return 0; } |
- |
-// CHECK: i64 @check_ulonglong() |
-unsigned long long check_ulonglong() { return 0; } |
- |
-// CHECK: i32 @check_size_t() |
-size_t check_size_t() { return 0; } |
- |
-// CHECK: float @check_float() |
-float check_float() { return 0; } |
- |
-// CHECK: double @check_double() |
-double check_double() { return 0; } |
- |
-// CHECK: double @check_longdouble() |
-long double check_longdouble() { return 0; } |
- |
-} |
- |
-template<int> void Switch(); |
-template<> void Switch<4>(); |
-template<> void Switch<8>(); |
-template<> void Switch<16>(); |
- |
-void check_pointer_size() { |
- // CHECK: SwitchILi4 |
- Switch<sizeof(void*)>(); |
- |
- // CHECK: SwitchILi8 |
- Switch<sizeof(long long)>(); |
- |
- // CHECK: SwitchILi16 |
- Switch<sizeof(va_list)>(); |
-} |