From 952eddef9aff85b1e92626e89baaf7a360e2ac85 Mon Sep 17 00:00:00 2001 From: dim <dim@FreeBSD.org> Date: Sun, 22 Dec 2013 00:07:40 +0000 Subject: Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3): https://llvm.org/svn/llvm-project/cfe/branches/release_34@197841 --- test/CodeGenCXX/debug-info-uuid.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/CodeGenCXX/debug-info-uuid.cpp (limited to 'test/CodeGenCXX/debug-info-uuid.cpp') diff --git a/test/CodeGenCXX/debug-info-uuid.cpp b/test/CodeGenCXX/debug-info-uuid.cpp new file mode 100644 index 0000000..a57e2f0 --- /dev/null +++ b/test/CodeGenCXX/debug-info-uuid.cpp @@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -emit-llvm -fms-extensions -triple=x86_64-pc-win32 -cxx-abi microsoft -g %s -o - -std=c++11 | FileCheck %s +// RUN: not %clang_cc1 -emit-llvm -fms-extensions -triple=x86_64-unknown-unknown -g %s -o - -std=c++11 2>&1 | FileCheck %s --check-prefix=CHECK-ITANIUM + +// CHECK: metadata [[TGIARGS:![0-9]*]], null} ; [ DW_TAG_structure_type ] [tmpl_guid<&__uuidof(uuid)>] +// CHECK: [[TGIARGS]] = metadata !{metadata [[TGIARG1:![0-9]*]]} +// CHECK: [[TGIARG1]] = {{.*}}metadata !"", metadata [[CONST_GUID_PTR:![0-9]*]], { i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab, {{.*}} ; [ DW_TAG_template_value_parameter ] +// CHECK: [[CONST_GUID_PTR]] = {{.*}}, metadata [[CONST_GUID:![0-9]*]]} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ] +// CHECK: [[CONST_GUID]] = {{.*}}, metadata [[GUID:![0-9]*]]} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from _GUID] +// CHECK: [[GUID]] = {{.*}} ; [ DW_TAG_structure_type ] [_GUID] + +// CHECK-ITANIUM: error: cannot yet mangle expression type CXXUuidofExpr + +struct _GUID; +template <const _GUID *> +struct tmpl_guid { +}; + +struct __declspec(uuid("{12345678-1234-1234-1234-1234567890ab}")) uuid; +tmpl_guid<&__uuidof(uuid)> tgi; -- cgit v1.1