hanchenye-llvm-project/clang/test/CodeGenCXX/conversion-function.cpp

10 lines
135 B
C++
Raw Normal View History

// RUN: clang-cc %s -emit-llvm -o %t &&
struct S {
operator int();
};
// RUN: grep "_ZN1ScviEv" %t
S::operator int() {
return 10;
}