mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
13 lines
256 B
C++
13 lines
256 B
C++
|
// RUN: %llvmgcc -S -g --emit-llvm %s -o - | grep "\~A"
|
||
|
// RUN: %llvmgcc -S -g --emit-llvm %s -o - | not grep comp_ctor
|
||
|
// RUN: %llvmgcc -S -g --emit-llvm %s -o - | not grep comp_dtor
|
||
|
class A {
|
||
|
int i;
|
||
|
public:
|
||
|
A() { i = 0; }
|
||
|
~A() { i = 42; }
|
||
|
};
|
||
|
|
||
|
A a;
|
||
|
|