Douglas Gregor | 473e70d | 2008-12-01 18:05:11 +0000 | [diff] [blame^] | 1 | // RUN: clang -triple x86_64-unknown-unknown %s -fsyntax-only -verify && |
2 | // RUN: clang -triple i686-unknown-unknown %s -fsyntax-only -verify | ||||
Douglas Gregor | ac72d40 | 2008-12-01 17:31:21 +0000 | [diff] [blame] | 3 | |
4 | void f() { | ||||
5 | int* i = __null; | ||||
6 | i = __null; | ||||
7 | int i2 = __null; | ||||
8 | |||||
9 | // Verify statically that __null is the right size | ||||
10 | int a[sizeof(typeof(__null)) == sizeof(void*)? 1 : -1]; | ||||
11 | } |