1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

207871: add test

This commit is contained in:
Andrew Ferguson 2008-05-22 16:03:44 +00:00
parent cebf09ee40
commit 92be19e029

View file

@ -2712,4 +2712,30 @@ public class AST2TemplateTests extends AST2BaseTest {
assertTrue(!Y.isSameType(Z)); assertTrue(!Y.isSameType(Z));
assertTrue(!Z.isSameType(X)); assertTrue(!Z.isSameType(X));
} }
// template <int x>
// class C {
// public:
// inline C() {};
// };
//
// const int _256=0x100;
//
// typedef C<_256> aRef;
//
// void foo(aRef& aRefence) {}
// void bar(C<_256>& aRefence) {}
// void baz(void) {}
//
// int main (void) {
// C<256> t;
// foo(t);
// bar(t);
// baz();
// }
public void _testBug207871() throws Exception {
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
ba.assertNonProblem("foo(t)", 3);
ba.assertNonProblem("bar(t)", 3);
}
} }