[llvm-commits] [llvm] r78325 - /llvm/trunk/test/FrontendC/wchar-const.c

Dale Johannesen dalej at apple.com
Thu Aug 6 10:28:23 PDT 2009


Author: johannes
Date: Thu Aug  6 12:28:23 2009
New Revision: 78325

URL: http://llvm.org/viewvc/llvm-project?rev=78325&view=rev
Log:
Testcase for llvm-gcc 78324 (although in normal
testing mode it won't test much).


Added:
    llvm/trunk/test/FrontendC/wchar-const.c

Added: llvm/trunk/test/FrontendC/wchar-const.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/wchar-const.c?rev=78325&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC/wchar-const.c (added)
+++ llvm/trunk/test/FrontendC/wchar-const.c Thu Aug  6 12:28:23 2009
@@ -0,0 +1,9 @@
+// RUN: %llvmgcc -S %s -o - | grep {constant \\\[18 x} | grep { 84, }
+// This should pass for any endianness combination of host and target.
+#include <ctype.h>
+extern void foo(const wchar_t* p);
+int main (int argc, const char * argv[])
+{
+ foo(L"This is some text");
+ return 0;
+}





More information about the llvm-commits mailing list