Hans Wennborg | c9bd88e | 2014-01-14 19:35:09 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -fms-extensions -triple i686-pc-win32 -emit-llvm -o - | FileCheck %s |
Nico Weber | 1598289 | 2012-06-25 22:30:41 +0000 | [diff] [blame] | 2 | |
Rafael Espindola | d9b26d5 | 2015-01-16 20:32:35 +0000 | [diff] [blame] | 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], comdat, align 2 |
Nico Weber | 1598289 | 2012-06-25 22:30:41 +0000 | [diff] [blame] | 4 | |
| 5 | void wprint(const wchar_t*); |
| 6 | |
| 7 | #define __STR2WSTR(str) L##str |
| 8 | #define _STR2WSTR(str) __STR2WSTR(str) |
| 9 | #define STR2WSTR(str) _STR2WSTR(str) |
| 10 | |
| 11 | void func() { |
| 12 | wprint(STR2WSTR(__FUNCTION__)); |
| 13 | } |
| 14 | |
| 15 | int main() { |
| 16 | func(); |
| 17 | |
| 18 | return 0; |
| 19 | } |
| 20 | |