[AMDGPU] Do not remat instructions with PhysReg uses (#124366)
[llvm-project.git] / clang-tools-extra / test / clang-apply-replacements / Inputs / yml-basic / basic.h
blob48509684b7725cd3375bb2e02cd44da0edd72a45
1 #ifndef BASIC_H
2 #define BASIC_H
5 class Parent {
6 public:
7 virtual void func() {}
8 };
10 class Derived : public Parent {
11 public:
12 virtual void func() {}
13 // CHECK: virtual void func() override {}
16 extern void ext(int (&)[5], const Parent &);
18 void func(int t) {
19 int ints[5];
20 for (unsigned i = 0; i < 5; ++i) {
21 int &e = ints[i];
22 e = t;
23 // CHECK: for (auto & elem : ints) {
24 // CHECK-NEXT: elem = t;
27 Derived d;
29 ext(ints, d);
32 #endif // BASIC_H