diff options
author | Nathan Ridge | 2018-09-28 04:59:08 +0000 |
---|---|---|
committer | Nathan Ridge | 2018-09-30 23:05:40 +0000 |
commit | dcc09f1975db6916f09a3ae5dd800040bed5e3b2 (patch) | |
tree | 7467f9473a3ac5a52e1dce1b651c100960da495b /core/org.eclipse.cdt.ui.tests | |
parent | fde7476a1abe1bea1e8cdfecef682e6920ef4bf6 (diff) | |
download | org.eclipse.cdt-dcc09f1975db6916f09a3ae5dd800040bed5e3b2.tar.gz org.eclipse.cdt-dcc09f1975db6916f09a3ae5dd800040bed5e3b2.tar.xz org.eclipse.cdt-dcc09f1975db6916f09a3ae5dd800040bed5e3b2.zip |
Bug 539535 - Originate an accurate lookup point in CPPASTFieldReference.createEvaluation()
Change-Id: I8030d5b304a61d7235a8ca92cf99de2d9a9aff68
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r-- | core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/SemanticHighlightingTest.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/SemanticHighlightingTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/SemanticHighlightingTest.java index 46abaa0e33b..388986fb141 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/SemanticHighlightingTest.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/SemanticHighlightingTest.java @@ -740,4 +740,20 @@ public class SemanticHighlightingTest extends TestCase { ignoredHighlightings.add(SemanticHighlightings.OVERLOADED_OPERATOR); makeAssertions(ignoredHighlightings); } + + // struct S { //$class + // int waldo; //$field + // }; + // struct Iter { //$class + // S operator*(); //$class,methodDeclaration + // }; + // int main() { //$functionDeclaration + // Iter it; //$class,localVariableDeclaration + // // TODO: The fact that the opening parenthesis gets its own overloadedOperator + // // semantic highlighting is an (unrelated) bug. + // 1 + (*it).waldo; //$overloadedOperator,overloadedOperator,localVariable,field + // } + public void testOverloadedOperatorStar_539535() throws Exception { + makeAssertions(); + } } |