mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

'char' is unsigned on all ARM and Thumb architectures. Clang gets this right for ARM, and for thumb when using and arm triple and the -mthumb option, but gets it wrong for thumb triples. This fixes that. llvm-svn: 220555
10 lines
507 B
C
10 lines
507 B
C
// RUN: %clang_cc1 -fsyntax-only -dM -E %s -triple x86_64-none-linux-gnu | FileCheck %s --check-prefix=CHECK-X86
|
|
// RUN: %clang_cc1 -fsyntax-only -dM -E %s -triple armv7-none-eabi | FileCheck %s --check-prefix=CHECK-ARM
|
|
// RUN: %clang_cc1 -fsyntax-only -dM -E %s -triple thumbv7-none-eabi | FileCheck %s --check-prefix=CHECK-ARM
|
|
|
|
// CHECK-X86-NOT: #define __WCHAR_UNSIGNED__
|
|
// CHECK-X86: #define __WINT_UNSIGNED__ 1
|
|
|
|
// CHECK-ARM: #define __WCHAR_UNSIGNED__ 1
|
|
// CHECK-ARM-NOT: #define __WINT_UNSIGNED__ 1
|