mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 03:05:39 +02:00
Trying to fix an encoding error that's occuring on the build machine.
This commit is contained in:
parent
3649b1333b
commit
7f60c033c4
1 changed files with 5 additions and 5 deletions
|
@ -1685,10 +1685,10 @@ public class AST2CPPSpecTest extends AST2SpecBaseTest {
|
||||||
[--Start Example(CPP 6.5-3):
|
[--Start Example(CPP 6.5-3):
|
||||||
int foo() {
|
int foo() {
|
||||||
int x=5;
|
int x=5;
|
||||||
while (-x >= 0)
|
while (--x >= 0)
|
||||||
int i;
|
int i;
|
||||||
//can be equivalently rewritten as
|
//can be equivalently rewritten as
|
||||||
while (-x >= 0) {
|
while (--x >= 0) {
|
||||||
int i;
|
int i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1812,7 +1812,7 @@ public class AST2CPPSpecTest extends AST2SpecBaseTest {
|
||||||
/**
|
/**
|
||||||
[--Start Example(CPP 6.8-1):
|
[--Start Example(CPP 6.8-1):
|
||||||
int foo() {
|
int foo() {
|
||||||
T(a)>m = 7; // expressionstatement
|
T(a)->m = 7; // expressionstatement
|
||||||
T(a)++; //expressionstatement
|
T(a)++; //expressionstatement
|
||||||
T(a,5)<<c; //expressionstatement
|
T(a,5)<<c; //expressionstatement
|
||||||
T(*d)(int); //declaration
|
T(*d)(int); //declaration
|
||||||
|
@ -8178,7 +8178,7 @@ public class AST2CPPSpecTest extends AST2SpecBaseTest {
|
||||||
void f(A) { }
|
void f(A) { }
|
||||||
void f(C) { }
|
void f(C) { }
|
||||||
B b;
|
B b;
|
||||||
f(b); //ambiguous because b > C via constructor and
|
f(b); //ambiguous because b -> C via constructor and
|
||||||
// b -> A via constructor or conversion function.
|
// b -> A via constructor or conversion function.
|
||||||
--End Example]
|
--End Example]
|
||||||
*/
|
*/
|
||||||
|
@ -8191,7 +8191,7 @@ public class AST2CPPSpecTest extends AST2SpecBaseTest {
|
||||||
buffer.append("void f(A) { }\n"); //$NON-NLS-1$
|
buffer.append("void f(A) { }\n"); //$NON-NLS-1$
|
||||||
buffer.append("void f(C) { }\n"); //$NON-NLS-1$
|
buffer.append("void f(C) { }\n"); //$NON-NLS-1$
|
||||||
buffer.append("B b;\n"); //$NON-NLS-1$
|
buffer.append("B b;\n"); //$NON-NLS-1$
|
||||||
buffer.append("f(b); //ambiguous because b > C via constructor and\n"); //$NON-NLS-1$
|
buffer.append("f(b); //ambiguous because b -> C via constructor and\n"); //$NON-NLS-1$
|
||||||
buffer.append("// b -> A via constructor or conversion function.\n"); //$NON-NLS-1$
|
buffer.append("// b -> A via constructor or conversion function.\n"); //$NON-NLS-1$
|
||||||
parse(buffer.toString(), ParserLanguage.CPP, false, 0);
|
parse(buffer.toString(), ParserLanguage.CPP, false, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue