blob: 4e4a40462ef3d2d1e8ef276dd4d67063a6cf9518 [file] [edit]
// Copyright (c) 2026, the Dart 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.
// functionFilter=main
// compilerOption=--no-inlining
// compilerOption=--no-minify
@pragma('external-effect')
external void externalEffect(Object? o);
void nonExternalEffect(Object? o) {}
int use(int i) {
print(i);
return i;
}
@pragma('wasm:never-inline')
void main() {
externalEffect(use(0));
print(1);
nonExternalEffect(use(2));
}