/* Test errors for accessing @private and @protected variables. */
/* Based on work by: Nicola Pero . */
/* { dg-do compile } */
#include
@interface MySuper
/* Contributed by Nicola Pero - Fri Mar 9 19:39:15 CET 2001 */
#include
#include
/* Test the @private, @protected, @public keyworks for ivars. We only
check syntax.
// Test referencing protected data from parent of inner class.
import java.util.Random;
public class inner_data
{
private class Randomer extends Super {
public long xxx ()
{
return seed;
// Test referencing protected data from parent of inner class.
import java.util.Random;
public class inner_data
{
private class Randomer extends Super {
public long xxx ()
{
return seed;