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); + } }