commit | da8d8c2b5e56ba9c49de70c18d11933d67458a34 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Wed May 16 20:04:05 2012 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Wed May 16 20:04:05 2012 +0000 |
tree | 04280e00a002c2555e0b103fabe0542d702f4153 | |
parent | 6a1fd4a078c96fef37609208661d6cd9309365c4 [diff] [blame] |
Add _alignof and __builtin_alignof as aliases for __alignof in Microsoft mode, from Will Wilson! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156940 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Parser/MicrosoftExtensions.c b/test/Parser/MicrosoftExtensions.c index 1ef326a..6b00534 100644 --- a/test/Parser/MicrosoftExtensions.c +++ b/test/Parser/MicrosoftExtensions.c
@@ -29,6 +29,11 @@ } _inline int foo99() { return 99; } +void test_ms_alignof_alias() { + unsigned int s = _alignof(int); + s = __builtin_alignof(int); +} + void *_alloca(int); void foo() {