blob: f92486d6d369aed9f3c15d911267d95c9318fc6d [file] [log] [blame]
Hans Wennborg442e4f72013-12-13 22:43:52 +00001// RUN: %clang_cc1 %s -fms-extensions -triple i686-pc-win32 -cxx-abi itanium -emit-llvm -o - | FileCheck %s
Nico Weber15982892012-06-25 22:30:41 +00002
3// CHECK: @L__FUNCTION__._Z4funcv = private 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