Files
carbon-lang/explorer/testdata/var/local/destroyed.carbon
T
Adrien LeravatandChandler Carruth cb14ce56a8 GitHub merge queue test commit (#2959)
Test change for the merge queue.

---------

Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
2023-06-29 00:38:59 +00:00

21 lines
420 B
Plaintext

// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// AUTOUPDATE
// CHECK:STDOUT: Destructor
// CHECK:STDOUT: result: 0
package ExplorerTest api;
class C {
destructor[self: Self] {
Print("Destructor");
}
}
fn Main() -> i32 {
var c_var_test: C = {};
return 0;
}