From 43f5e1eb300314bf703e593606127d9881efa8ad Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Thu, 19 Apr 2007 09:41:38 +0000 Subject: [PATCH] Test case for bug 109480 --- .../text/contentassist2/CompletionTests.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java index edca172d8af..7e86a625ef5 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java @@ -105,6 +105,16 @@ public class CompletionTests extends AbstractContentAssistTest { // T add(T tOther) { // return fTField + tOther; // } +//}; +//// bug 109480 +//class Printer +//{ +//public: +// static void InitPrinter(unsigned char port); +//private: +// //Storage for port printer is on +// static unsigned char port; +//protected: //}; public CompletionTests(String name) { @@ -705,4 +715,13 @@ public class CompletionTests extends AbstractContentAssistTest { }; assertCompletionResults(fCursorOffset, expected, AbstractContentAssistTest.COMPARE_ID_STRINGS); } + + //void Printer::InitPrinter(unsigned char port) { + // Printer::/*cursor*/ + public void testPrivateStaticMember_Bug109480() throws Exception { + final String[] expected= { + "InitPrinter()", "port" + }; + assertCompletionResults(fCursorOffset, expected, AbstractContentAssistTest.COMPARE_REP_STRINGS); + } }