Sign in
fuchsia
/
third_party
/
llvm-test-suite
/
refs/tags/llvmorg-12.0.1
/
.
/
SingleSource
/
Regression
/
C++
/
2003-09-29-NonPODsByValue.cpp
blob: 95167317e7c0409e39d59385aa6b03a84efd376d [
file
] [
log
] [
blame
]
#include
<stdio.h>
struct
C
{
unsigned
bv
;
~
C
()
{}
};
static
unsigned
test
(
C b
)
{
return
b
.
bv
;
}
int
main
()
{
C c
;
c
.
bv
=
1234
;
printf
(
"%d\n"
,
test
(
c
));
return
0
;
}