~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2013-10-03 20:30:16 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131003203016-d4ug6l0xgosasumq
Tags: 8.2.1-1
* New upstream release.
* Updated autotools documentation sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
import org.eclipse.cdt.core.dom.ast.cpp.ICPPReferenceType;
128
128
import org.eclipse.cdt.core.dom.ast.cpp.ICPPUsingDeclaration;
129
129
import org.eclipse.cdt.core.dom.ast.cpp.ICPPVariable;
 
130
import org.eclipse.cdt.core.dom.ast.cpp.SemanticQueries;
130
131
import org.eclipse.cdt.core.parser.ParserLanguage;
131
132
import org.eclipse.cdt.core.parser.util.CharArrayUtils;
132
133
import org.eclipse.cdt.internal.core.dom.parser.SizeofCalculator;
9579
9580
        public void testRecursiveClassInheritance_Bug357256() throws Exception {
9580
9581
                BindingAssertionHelper bh= getAssertionHelper();
9581
9582
                ICPPClassType c= bh.assertNonProblem("A", 1);
9582
 
                assertEquals(0, ClassTypeHelper.getPureVirtualMethods(c, null).length);
 
9583
                assertEquals(0, SemanticQueries.getPureVirtualMethods(c, null).length);
9583
9584
        }
9584
9585
 
9585
9586
        //      template <typename T> struct CT1 {};
9800
9801
        public void testFriendTemplateParameter() throws Exception {
9801
9802
                parseAndCheckBindings();
9802
9803
        }
 
9804
        
 
9805
        //      struct foo {
 
9806
        //          foo();
 
9807
        //          ~foo();
 
9808
        //      };
 
9809
        //
 
9810
        //      class bar {
 
9811
        //          friend foo::foo();
 
9812
        //          friend foo::~foo();
 
9813
        //      };
 
9814
        public void testFriendConstructorDestructor_400940() throws Exception {
 
9815
                parseAndCheckBindings();
 
9816
        }
9803
9817
 
9804
9818
        // struct S {
9805
9819
        //     virtual void mFuncDecl() final;
10312
10326
                ICPPClassType privateNestedClass = bh.assertNonProblem("privateNestedClass");
10313
10327
                assertVisibility(ICPPClassType.v_private, aClass.getVisibility(privateNestedClass));
10314
10328
        }
 
10329
        
 
10330
        //      int main() {
 
10331
        //              int i = 0;
 
10332
        //              __sync_bool_compare_and_swap(& i, 0, 1);
 
10333
        //              __sync_val_compare_and_swap(&i, 1, 2);
 
10334
        //              __sync_synchronize();
 
10335
        //      }
 
10336
        public void testGNUSyncBuiltins_bug389578() throws Exception {
 
10337
                parseAndCheckBindings(getAboveComment(), CPP, true);
 
10338
        }
10315
10339
}