xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/mangle-ms-cxx11.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -fms-extensions -emit-llvm %s -o - -cxx-abi microsoft -triple=i386-pc-win32 | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc // CHECK: "\01?LRef@@YAXAAH@Z"
4*f4a2713aSLionel Sambuc void LRef(int& a) { }
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc // CHECK: "\01?RRef@@YAH$$QAH@Z"
7*f4a2713aSLionel Sambuc int RRef(int&& a) { return a; }
8*f4a2713aSLionel Sambuc 
9*f4a2713aSLionel Sambuc // CHECK: "\01?Null@@YAX$$T@Z"
10*f4a2713aSLionel Sambuc namespace std { typedef decltype(__nullptr) nullptr_t; }
11*f4a2713aSLionel Sambuc void Null(std::nullptr_t) {}
12