mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
new testcase for PR602
llvm-svn: 22495
This commit is contained in:
parent
7259cc60c4
commit
df5e211e12
14
test/Regression/C++Frontend/2005-07-21-VirtualBaseAccess.cpp
Normal file
14
test/Regression/C++Frontend/2005-07-21-VirtualBaseAccess.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | not grep cast
|
||||
|
||||
void foo(int*);
|
||||
|
||||
struct FOO {
|
||||
int X;
|
||||
};
|
||||
|
||||
struct BAR : virtual FOO { BAR(); };
|
||||
|
||||
int testfn() {
|
||||
BAR B;
|
||||
foo(&B.X);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user