summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/powerpc-byval.cpp
blob: ff87618575d6dc43a638c338554a8b3f43c2f5b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=powerpc-unknown-linux | FileCheck %s

struct S {
  S();
  ~S();
};

void byval(S one, S two) {
  one = two;
}

// CHECK: define void @_Z5byval1SS_(%struct.S* %one, %struct.S* %two)