[cfe-commits] r83945 - test commit in /cfe/trunk: test/Parser/cxx-using-declaration.cpp

John Thompson john.thompson.jtsoftware at gmail.com
Mon Oct 12 22:57:48 PDT 2009


This is just a test commit.  I deleted an empty line and converted crlf's to
nl's.

I just noticed the test was disabled.  I'll fix this once all the test pass
on Win32.

Index: test/Parser/cxx-using-declaration.cpp
===================================================================
--- test/Parser/cxx-using-declaration.cpp (revision 83914)
+++ test/Parser/cxx-using-declaration.cpp (working copy)
@@ -1,48 +1,47 @@
-// FIXME: Disabled, appears to have undefined behavior, and needs to be
updated to match new warnings.
-// RUN: true
-
-// RUNX: clang-cc -fsyntax-only -verify %s
-
-namespace A {
-    int VA;
-    void FA() {}
-    struct SA { int V; };
-}
-
-using A::VA;
-using A::FA;
-using typename A::SA;
-
-void main()
-{
-    VA = 1;
-    FA();
-    SA x;   //Still needs handling.
-}
-
-struct B {
-    void f(char){};
-    void g(char){};
-};
-struct D : B {
-    using B::f;
-    void f(int);
-    void g(int);
-};
-void D::f(int) { f('c'); } // calls B::f(char)
-void D::g(int) { g('c'); } // recursively calls D::g(int)
-
-namespace E {
-    template <typename TYPE> int funcE(TYPE arg) { return(arg); }
-}
-
-using E::funcE<int>; // expected-error{{use of template specialization in
using directive not allowed}}
-
-namespace F {
-    struct X;
-}
-
-using F::X;
-// Should have some errors here.  Waiting for implementation.
-void X(int);
-struct X *x;
+// FIXME: Disabled, appears to have undefined behavior, and needs to be
updated to match new warnings.
+// RUN: true
+// RUNX: clang-cc -fsyntax-only -verify %s
+
+namespace A {
+    int VA;
+    void FA() {}
+    struct SA { int V; };
+}
+
+using A::VA;
+using A::FA;
+using typename A::SA;
+
+void main()
+{
+    VA = 1;
+    FA();
+    SA x;   //Still needs handling.
+}
+
+struct B {
+    void f(char){};
+    void g(char){};
+};
+struct D : B {
+    using B::f;
+    void f(int);
+    void g(int);
+};
+void D::f(int) { f('c'); } // calls B::f(char)
+void D::g(int) { g('c'); } // recursively calls D::g(int)
+
+namespace E {
+    template <typename TYPE> int funcE(TYPE arg) { return(arg); }
+}
+
+using E::funcE<int>; // expected-error{{use of template specialization in
using directive not allowed}}
+
+namespace F {
+    struct X;
+}
+
+using F::X;
+// Should have some errors here.  Waiting for implementation.
+void X(int);
+struct X *x;

-John

-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091012/d7746acd/attachment.html>


More information about the cfe-commits mailing list