"Fossies" - the Fresh Open Source Software Archive 
Member "graal-vm-22.1.0.1/sulong/tests/com.oracle.truffle.llvm.tests.sulong.native/c/regressions/2016-09-23-metadata_contradictory_types.c" (10 May 2022, 1989 Bytes) of package /linux/misc/graal-vm-22.1.0.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /*
2 * Copyright (c) 2016, 2020, Oracle and/or its affiliates.
3 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without modification, are
7 * permitted provided that the following conditions are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright notice, this list of
10 * conditions and the following disclaimer.
11 *
12 * 2. Redistributions in binary form must reproduce the above copyright notice, this list of
13 * conditions and the following disclaimer in the documentation and/or other materials provided
14 * with the distribution.
15 *
16 * 3. Neither the name of the copyright holder nor the names of its contributors may be used to
17 * endorse or promote products derived from this software without specific prior written
18 * permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
21 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
22 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
25 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
28 * OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30 struct _point {
31 int x, y;
32 };
33
34 typedef struct _point myPoint;
35 typedef struct _point yourPoint;
36
37 void foo() {
38 #pragma clang diagnostic push
39 #pragma clang diagnostic ignored "-Wunused-variable"
40 yourPoint p;
41 #pragma clang diagnostic pop
42 }
43
44 int main() {
45 #pragma clang diagnostic push
46 #pragma clang diagnostic ignored "-Wunused-variable"
47 myPoint p;
48 #pragma clang diagnostic pop
49 return 0;
50 }