]> granicus.if.org Git - clang/commitdiff
Fix a last-minute typo and make the test not emit temporaries.
authorJohn McCall <rjmccall@apple.com>
Sat, 29 Aug 2009 03:28:20 +0000 (03:28 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 29 Aug 2009 03:28:20 +0000 (03:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80419 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/temp/temp.decls/temp.friend/p1.cpp

index fe92f4d759e2ff6f1efa829435c498cc03d3301f..4f0037d47081d0ea9d5acce49f900c21519f0c10 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc %s
+// RUN: clang-cc -emit-llvm-only %s
 
 template <typename T> struct Num {
   T value_;
@@ -38,7 +38,7 @@ int calc1() {
 
 int calc2() {
   Num<int> x = 3;
-  Num<int>::Rep<char> n = (cast) 10;
+  Num<int>::Rep<char> n = (char) 10;
   Num<int> result = x * n;
   return result.get();
 }