Astyle fix
This commit is contained in:
parent
76dda36b64
commit
ca70693055
|
@ -4875,25 +4875,25 @@ private:
|
||||||
|
|
||||||
void functionpointer4() {
|
void functionpointer4() {
|
||||||
const char code[] = ""
|
const char code[] = ""
|
||||||
"struct S\n"
|
"struct S\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" typedef void (*FP)();\n"
|
" typedef void (*FP)();\n"
|
||||||
" virtual FP getFP();\n"
|
" virtual FP getFP();\n"
|
||||||
" virtual void execute();\n"
|
" virtual void execute();\n"
|
||||||
"};\n"
|
"};\n"
|
||||||
"void f() {\n"
|
"void f() {\n"
|
||||||
" int a[9];\n"
|
" int a[9];\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
const char expected[] = "\n\n##file 0\n"
|
const char expected[] = "\n\n##file 0\n"
|
||||||
"1: struct S\n"
|
"1: struct S\n"
|
||||||
"2: {\n"
|
"2: {\n"
|
||||||
"3: ;\n"
|
"3: ;\n"
|
||||||
"4: virtual void ( * getFP ( ) ) ( ) ;\n"
|
"4: virtual void ( * getFP ( ) ) ( ) ;\n"
|
||||||
"5: virtual void execute ( ) ;\n"
|
"5: virtual void execute ( ) ;\n"
|
||||||
"6: } ;\n"
|
"6: } ;\n"
|
||||||
"7: void f ( ) {\n"
|
"7: void f ( ) {\n"
|
||||||
"8: int a@1 [ 9 ] ;\n"
|
"8: int a@1 [ 9 ] ;\n"
|
||||||
"9: }\n";
|
"9: }\n";
|
||||||
ASSERT_EQUALS(expected, tokenizeDebugListing(code, false));
|
ASSERT_EQUALS(expected, tokenizeDebugListing(code, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue