xref: /aosp_15_r20/external/clang/test/Lexer/wchar-signedness.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -fsyntax-only -dM -E %s -triple x86_64-none-linux-gnu | FileCheck %s --check-prefix=CHECK-X86
2 // RUN: %clang_cc1 -fsyntax-only -dM -E %s -triple armv7-none-eabi | FileCheck %s --check-prefix=CHECK-ARM
3 // RUN: %clang_cc1 -fsyntax-only -dM -E %s -triple thumbv7-none-eabi | FileCheck %s --check-prefix=CHECK-ARM
4 
5 // CHECK-X86-NOT: #define __WCHAR_UNSIGNED__
6 // CHECK-X86: #define __WINT_UNSIGNED__ 1
7 
8 // CHECK-ARM: #define __WCHAR_UNSIGNED__ 1
9 // CHECK-ARM-NOT: #define __WINT_UNSIGNED__ 1
10