mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Checked in JUnit for regression purposes.
This commit is contained in:
parent
4c980d6ac9
commit
db6c8a053b
2 changed files with 10 additions and 0 deletions
|
@ -101,6 +101,12 @@ import org.eclipse.cdt.internal.core.parser.ParserException;
|
|||
*/
|
||||
|
||||
public class AST2CPPTests extends AST2BaseTest {
|
||||
|
||||
public void testBug75189() throws Exception {
|
||||
parseAndCheckBindings( "struct A{};typedef int (*F) (A*);" ); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
||||
public void testBug79540() throws Exception {
|
||||
StringBuffer buffer = new StringBuffer( "#define REF_WRAP(e) class A { public: A (){ } A& foo2(e& v) { return *this; } }\n" ); //$NON-NLS-1$
|
||||
buffer.append( "class B\n" ); //$NON-NLS-1$
|
||||
|
|
|
@ -89,6 +89,10 @@ import org.eclipse.cdt.internal.core.parser.ParserException;
|
|||
*/
|
||||
public class AST2Tests extends AST2BaseTest {
|
||||
|
||||
public void testBug75189() throws Exception {
|
||||
parseAndCheckBindings( "struct A{};typedef int (*F) (A*);" ); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public void testBug78103() throws Exception {
|
||||
StringBuffer buffer = new StringBuffer( "int *p1; int *p2;\n" ); //$NON-NLS-1$
|
||||
buffer.append( "union {\n" ); //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue