OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.mi/] [gdb792.cc] - Rev 157

Compare with Previous | Blame | View Log

#include <string.h>
#include <stdio.h>
 
class Q
{
	int v;
	protected:
		int qx;
		int qy;
	int w;
};
 
class B
{
	int k;
	public:
		int bx;
		int by;
};
 
class A
{
	int u;
 
	public:
		A()
		{
		};
		int x;
		char buffer[10];
 
	protected:
		int y;
		B b;
 
	private:
		float z;
};
 
class C : public A
{
	public:
		C()
		{
		};
		int zzzz;
	private:
		int ssss;
};
 
int main()
{
	A a;
	C c;
	Q q;
	strcpy( a.buffer, "test" );
	printf ( "%.10s\n", a.buffer );
	return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.