[llvm-commits] [test-suite] r97701 - /test-suite/trunk/MultiSource/Applications/hbd/err.cpp
Douglas Gregor
dgregor at apple.com
Wed Mar 3 16:58:01 PST 2010
Author: dgregor
Date: Wed Mar 3 18:58:01 2010
New Revision: 97701
URL: http://llvm.org/viewvc/llvm-project?rev=97701&view=rev
Log:
Clang will not support implicit conversions from ternary operators
like false? "string" : "other string" to char*. That's just too
hideous.
Modified:
test-suite/trunk/MultiSource/Applications/hbd/err.cpp
Modified: test-suite/trunk/MultiSource/Applications/hbd/err.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/hbd/err.cpp?rev=97701&r1=97700&r2=97701&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/hbd/err.cpp (original)
+++ test-suite/trunk/MultiSource/Applications/hbd/err.cpp Wed Mar 3 18:58:01 2010
@@ -14,10 +14,10 @@
char *errmsgs[] = {
"Unknown error.",
"Out of memory error.",
- DEBUG_ON? "Usage: %s [-O] [-D] InFile.class [OutFile.java]\n"
- :"Usage: %s [-O] InFile.class [OutFile.java]\n",
- DEBUG_ON? "Usage: %s [-D] -Ifuncname InFile.class\n"
- :"Usage: %s -Ifuncname InFile.class\n",
+ DEBUG_ON? (char*)"Usage: %s [-O] [-D] InFile.class [OutFile.java]\n"
+ :(char*)"Usage: %s [-O] InFile.class [OutFile.java]\n",
+ DEBUG_ON? (char*)"Usage: %s [-D] -Ifuncname InFile.class\n"
+ :(char*)"Usage: %s -Ifuncname InFile.class\n",
"Not a class.",
"Unsupported Class Version.",
"3"
More information about the llvm-commits
mailing list