diff options
author | Eric Christopher <echristo@apple.com> | 2011-07-26 23:49:39 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-07-26 23:49:39 +0000 |
commit | e927dc654f4d9529bd13783680636cb0db0eb852 (patch) | |
tree | 3cabfda420d2a0dc0abe391ac0f3700b3ef5451e /test/FrontendC/2007-10-01-BuildArrayRef.c | |
parent | 00005782fa860f4b48b3b5261d92541c61ee2495 (diff) |
Remove test/FrontendC, almost all of the tests have been migrated
to clang now, the rest are in process (6) or have been deleted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC/2007-10-01-BuildArrayRef.c')
-rw-r--r-- | test/FrontendC/2007-10-01-BuildArrayRef.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/FrontendC/2007-10-01-BuildArrayRef.c b/test/FrontendC/2007-10-01-BuildArrayRef.c deleted file mode 100644 index e87a5b6305..0000000000 --- a/test/FrontendC/2007-10-01-BuildArrayRef.c +++ /dev/null @@ -1,20 +0,0 @@ -// RUN: not %llvmgcc_only -c %s -o /dev/null |& FileCheck %s -// PR 1603 -void func() -{ - const int *arr; - arr[0] = 1; // CHECK: error: assignment of read-only location -} - -struct foo { - int bar; -}; -struct foo sfoo = { 0 }; - -int func2() -{ - const struct foo *fp; - fp = &sfoo; - fp[0].bar = 1; // CHECK: error: assignment of read-only member 'bar' - return sfoo.bar; -} |