Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2008-04-07 10:53:36 +0000
committerAnton Leherbauer2008-04-07 10:53:36 +0000
commit3d6501658cf1525291bb35c339abf3f7b9834dad (patch)
treecfe2011b5ca8dbc47b5caa2347e10fbe4c716b2f /core/org.eclipse.cdt.ui.tests
parent076444ffe042df890ae32472beafd08556b63449 (diff)
downloadorg.eclipse.cdt-3d6501658cf1525291bb35c339abf3f7b9834dad.tar.gz
org.eclipse.cdt-3d6501658cf1525291bb35c339abf3f7b9834dad.tar.xz
org.eclipse.cdt-3d6501658cf1525291bb35c339abf3f7b9834dad.zip
Fix for 225858: Code formatter differences from CDT 4.0.x
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/CodeFormatterTest.java26
1 files changed, 25 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java
index 0f3c3bce9b8..e53d176c029 100644
--- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java
+++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java
@@ -414,7 +414,7 @@ public class CodeFormatterTest extends BaseUITestCase {
//void f() {
// int *px = ::new int(0);
// int py[] = new int[5](0, 1, 2, 3, 4);
- // int *pz[] = new(px) int(0);
+ // int *pz[] = new (px) int(0);
// delete[] py;
// ::delete px;
//}
@@ -601,4 +601,28 @@ public class CodeFormatterTest extends BaseUITestCase {
fOptions= DefaultCodeFormatterOptions.getWhitesmithsSettings().getMap();
assertFormatterResult();
}
+
+ //enum Tthe3rdtestIds
+ //{
+ //ECommand1 = 0x6001,
+ //ECommand2,
+ //EHelp,
+ //EAbout
+ //};
+ //
+ //CActiveScheduler* scheduler = new (ELeave) CActiveScheduler();
+
+ //enum Tthe3rdtestIds
+ // {
+ // ECommand1 = 0x6001,
+ // ECommand2,
+ // EHelp,
+ // EAbout
+ // };
+ //
+ //CActiveScheduler* scheduler = new (ELeave) CActiveScheduler();
+ public void testFormatterRegressions_Bug225858() throws Exception {
+ fOptions= DefaultCodeFormatterOptions.getWhitesmithsSettings().getMap();
+ assertFormatterResult();
+ }
}

Back to the top