diff options
author | Eric Christopher <echristo@apple.com> | 2012-05-19 01:36:50 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-05-19 01:36:50 +0000 |
commit | 37e4cea0f548fc8a4b3c46aa92c925d6ea49d071 (patch) | |
tree | bde139a06ff832e956bbb3ab257b1b6700483804 /test/CodeGenCXX/debug-info-rvalue-ref.cpp | |
parent | 671e3bc1a16562902c0e6efc157b519977c299a8 (diff) |
Update API usage for llvm DIBuilder changes for rvalue reference
types and ensure we are actually creating the type.
rdar://11479676
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-rvalue-ref.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-rvalue-ref.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-rvalue-ref.cpp b/test/CodeGenCXX/debug-info-rvalue-ref.cpp new file mode 100644 index 0000000000..b633c5ceb5 --- /dev/null +++ b/test/CodeGenCXX/debug-info-rvalue-ref.cpp @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -std=c++11 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s + +extern "C" { +extern int printf(const char * format, ...); +} +void foo (int &&i) +{ + printf("%d\n", i); +} + +// CHECK: metadata !{i32 {{.*}}, null, null, null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !10} ; [ DW_TAG_rvalue_reference_type ] |