22 lines
182 B
C++
22 lines
182 B
C++
// Compile with:
|
|
// g++ -g -Wall -c test27-local-base-diff-v1.cc
|
|
struct base
|
|
{
|
|
int m0;
|
|
char m1;
|
|
};
|
|
|
|
struct S : public base
|
|
{
|
|
int m0;
|
|
};
|
|
|
|
void
|
|
bar(base&)
|
|
{}
|
|
|
|
void
|
|
foo(S*)
|
|
{
|
|
}
|