blob: 3d78e2e8db7d4aaf8aa0464bb51aaa5ebb212748 [file] [log] [blame]
Douglas Gregor473e70d2008-12-01 18:05:11 +00001// RUN: clang -triple x86_64-unknown-unknown %s -fsyntax-only -verify &&
2// RUN: clang -triple i686-unknown-unknown %s -fsyntax-only -verify
Douglas Gregorac72d402008-12-01 17:31:21 +00003
4void 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}