aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle-ms-cxx11.cpp
blob: 6947a53c4d1e2323010b561c7875762db811e4d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -std=c++11 -fms-extensions -emit-llvm %s -o - -cxx-abi microsoft -triple=i386-pc-win32 | FileCheck %s

// CHECK: "\01?LRef@@YAXAAH@Z"
void LRef(int& a) { }

// CHECK: "\01?RRef@@YAH$$QAH@Z"
int RRef(int&& a) { return a; }

// CHECK: "\01?Null@@YAX$$T@Z"
namespace std { typedef decltype(__nullptr) nullptr_t; }
void Null(std::nullptr_t) {}