You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
375 B
11 lines
375 B
// RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify %s
|
|
// RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify -fwchar-type=short -fno-signed-wchar %s
|
|
// expected-no-diagnostics
|
|
|
|
#include <stdint.h>
|
|
|
|
const bool swchar = (wchar_t)-1 > (wchar_t)0;
|
|
|
|
int max_test[WCHAR_MAX == (swchar ? -(WCHAR_MIN+1) : (wchar_t)-1)];
|
|
int min_test[WCHAR_MIN == (swchar ? 0 : -WCHAR_MAX-1)];
|