]> granicus.if.org Git - clang/commitdiff
Make the wchar_t promotion test consistent across different hosts by specifying a...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 20 Sep 2012 18:57:53 +0000 (18:57 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 20 Sep 2012 18:57:53 +0000 (18:57 +0000)
This test behavior differs depending (at least) on whether
sizeof(wchar_t) == sizeof(int) or not.

When they are equal, the first redeclaration will fail because decltype(+L'x')
is unsigned int instead of the expected int. This occurs on ARM.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164315 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/conv/conv.prom/p2.cpp

index 8d75419878ad410d54dd0278df311395719a5982..6549a1a0bdaaa2087f44207fa01e82ca4a7e8037 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -ffreestanding %s
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -fshort-wchar -ffreestanding %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -triple x86_64-pc-linux-gnu -ffreestanding %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -triple x86_64-pc-linux-gnu -ffreestanding -fshort-wchar %s
 
 #include <stdint.h>