Author: dblaikie
Date: Thu Sep 20 13:57:53 2012
New Revision: 164315

URL: http://llvm.org/viewvc/llvm-project?rev=164315&view=rev
Log:
Make the wchar_t promotion test consistent across different hosts by specifying 
a target triple.

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.

Modified:
    cfe/trunk/test/CXX/conv/conv.prom/p2.cpp

Modified: cfe/trunk/test/CXX/conv/conv.prom/p2.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/conv/conv.prom/p2.cpp?rev=164315&r1=164314&r2=164315&view=diff
==============================================================================
--- cfe/trunk/test/CXX/conv/conv.prom/p2.cpp (original)
+++ cfe/trunk/test/CXX/conv/conv.prom/p2.cpp Thu Sep 20 13:57:53 2012
@@ -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>
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to