blob: a7aa4d283b862dc9faa251e85894db9230c46ad9 [file] [log] [blame]
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package inlining;
class A {
int a;
int b;
A(int a) {
this.a = a;
this.b = a + 1;
}
int a() {
return a;
}
int b() {
return b;
}
int cannotInline(int v) {
// Cannot inline due to recursion.
if (v > 0) {
return cannotInline(v - 1);
}
return 42;
}
}