[cfe-commits] r89876 - /cfe/trunk/test/Parser/cxx-using-declaration.cpp

Douglas Gregor dgregor at apple.com
Wed Nov 25 11:28:09 PST 2009


Author: dgregor
Date: Wed Nov 25 13:28:08 2009
New Revision: 89876

URL: http://llvm.org/viewvc/llvm-project?rev=89876&view=rev
Log:
Tweak expected error to match what should happen, once using declarations work

Modified:
    cfe/trunk/test/Parser/cxx-using-declaration.cpp

Modified: cfe/trunk/test/Parser/cxx-using-declaration.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx-using-declaration.cpp?rev=89876&r1=89875&r2=89876&view=diff

==============================================================================
--- cfe/trunk/test/Parser/cxx-using-declaration.cpp (original)
+++ cfe/trunk/test/Parser/cxx-using-declaration.cpp Wed Nov 25 13:28:08 2009
@@ -1,4 +1,3 @@
-// FIXME: Disabled, appears to have undefined behavior, and needs to be updated to match new warnings.
 // RUN: clang-cc -fsyntax-only -verify %s
 // XFAIL: *
 
@@ -12,7 +11,7 @@
 using A::FA;
 using typename A::SA;
 
-void main()
+int main()
 {
     VA = 1;
     FA();
@@ -35,7 +34,7 @@
     template <typename TYPE> int funcE(TYPE arg) { return(arg); }
 }
 
-using E::funcE<int>; // expected-error{{use of template specialization in using directive not allowed}}
+using E::funcE<int>; // expected-error{{using declaration can not refer to a template specialization}}
 
 namespace F {
     struct X;





More information about the cfe-commits mailing list