21 lines · cpp
1// RUN: %clang_cc1 %s -fms-extensions -triple i686-pc-win32 -emit-llvm -o - | FileCheck %s2 3// CHECK: @"??_C@_19DPFBEKIN@?$AAf?$AAu?$AAn?$AAc?$AA?$AA@" = linkonce_odr dso_local unnamed_addr constant [5 x i16] [i16 102, i16 117, i16 110, i16 99, i16 0], comdat, align 24 5void wprint(const wchar_t*);6 7#define __STR2WSTR(str) L##str8#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