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

John Thompson John.Thompson.JTSoftware at gmail.com
Mon Oct 12 22:45:19 PDT 2009


Author: jtsoftware
Date: Tue Oct 13 00:45:19 2009
New Revision: 83945

URL: http://llvm.org/viewvc/llvm-project?rev=83945&view=rev
Log:
test commit

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=83945&r1=83944&r2=83945&view=diff

==============================================================================
--- cfe/trunk/test/Parser/cxx-using-declaration.cpp (original)
+++ cfe/trunk/test/Parser/cxx-using-declaration.cpp Tue Oct 13 00:45:19 2009
@@ -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;





More information about the cfe-commits mailing list