blob: 07ec80688f95d1e964d896bfecc4b8a8efcd11fb [file] [log] [blame]
clementbera72885972019-05-21 12:30:02 +02001// Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
clementberabe19d302019-05-23 17:23:21 +02005package nesthostexample;
clementbera948e4182019-05-14 12:25:26 +02006
7public class BasicNestHostTreePruning {
8
9 private String field = "NotPruned";
10
11 public static class NotPruned extends BasicNestHostTreePruning {
12
clementberad5bd4f32019-05-21 12:22:06 +020013 @NeverInline
clementbera948e4182019-05-14 12:25:26 +020014 public String getFields() {
15 return ((BasicNestHostTreePruning) this).field;
16 }
17 }
18
19 public static class Pruned {
20
21 public static void main(String[] args) {
22 System.out.println("NotPruned");
23 }
24 }
25
26 public static void main(String[] args) {
27 System.out.println(new NotPruned().getFields());
28 }
29}