Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp')
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp28
1 files changed, 23 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp b/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp
index 1d1714954f9..07d43c21b4d 100644
--- a/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp
+++ b/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp
@@ -44,11 +44,11 @@ int foo(int bar) const {
/*
* Line Wrapping
*/
-int array[]= { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 1000,
- 2000, 3000, 4000, 5000 };
-int compare(int argument, int otherArgument) {
- return argument+otherArgument > argument*otherArgument+1000000 ? 100000
- +50000 : 200000-30000;
+int array[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
+ 1000, 2000, 3000, 4000, 5000 };
+int compare(int argument, int otherArg) {
+ return argument + otherArg > argument * otherArg + 1000000 ? 100000 + 50000
+ : 200000 - 30000;
}
class Other {
static void bar(int arg1, int arg2, int arg3, int arg4, int arg5, int arg6,
@@ -59,3 +59,21 @@ void foo() {
Other::bar(100000, 200000, 300000, 400000, 500000, 600000, 700000, 800000,
900000);
}
+enum EEEE {
+ ONE,
+ TWO,
+ THREE,
+ FOUR,
+ FIVE,
+ SIX,
+ SEVEN = 7,
+ EIGHT,
+ NINE,
+ TEN,
+ HUNDRED,
+ THOUSAND,
+ AMILLION
+};
+template<typename T1, typename T2> class map {
+};
+map<int, int> m;

Back to the top