diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-25 13:14:46 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-25 13:14:46 +0000 |
commit | 293361afd4199c92aabff9267fddea890943c586 (patch) | |
tree | 21d5be2623a23d0f2c24bc66e16be6e38644c5d8 /test/CodeGenCXX/conversion-function.cpp | |
parent | 8644aecd4383ce829d1eed81e96399904a948362 (diff) |
Emit conversion functions correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/conversion-function.cpp')
-rw-r--r-- | test/CodeGenCXX/conversion-function.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGenCXX/conversion-function.cpp b/test/CodeGenCXX/conversion-function.cpp new file mode 100644 index 0000000000..57e5ad7315 --- /dev/null +++ b/test/CodeGenCXX/conversion-function.cpp @@ -0,0 +1,9 @@ +// RUN: clang-cc %s -emit-llvm -o %t && +struct S { + operator int(); +}; + +// RUN: grep "_ZN1ScviEv" %t +S::operator int() { + return 10; +} |