1// RUN: %clang_cc1 %s -fms-extensions -triple i686-pc-win32 -emit-llvm -o - | FileCheck %s
2
3// CHECK: @"\01??_C@_19DPFBEKIN@?$AAf?$AAu?$AAn?$AAc?$AA?$AA@" = linkonce_odr unnamed_addr constant [5 x i16] [i16 102, i16 117, i16 110, i16 99, i16 0], align 2
4
5void wprint(const wchar_t*);
6
7#define __STR2WSTR(str) L##str
8#define _STR2WSTR(str) __STR2WSTR(str)
9#define STR2WSTR(str) _STR2WSTR(str)
10
11void func() {
12  wprint(STR2WSTR(__FUNCTION__));
13}
14
15int main() {
16  func();
17
18  return 0;
19}
20
21