blob: c07eaa36a4992c57310ee7b6efb38343eb70ef51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/* Copyright (C) 2007 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* Conditional macros should not be expanded by pragmas. */
#pragma __vector
_Pragma ("__vector")
/* Redefinition of conditional macros. */
/* No warning should be generated. */
#define __vector __new_vector
#define __pixel __new_pixel
#define __bool __new_bool
#define vector new_vector
#define pixel new_pixel
#define bool new_bool
/* Definition of conditional macros. */
/* No warning should be generated. */
#undef __vector
#define __vector __new_vector
#undef __pixel
#define __pixel __new_pixel
#undef __bool
#define __bool __new_bool
#undef vector
#define vector new_vector
#undef pixel
#define pixel new_pixel
#undef bool
#define bool new_bool
/* Re-definition of "unconditional" macros. */
/* Warnings should be generated as usual. */
#define __vector __newer_vector
#define __pixel __newer_pixel
#define __bool __newer_bool
#define vector newer_vector
#define pixel newer_pixel
#define bool newer_bool
/* { dg-warning "redefined" "__vector redefined" { target *-*-* } 45 } */
/* { dg-warning "redefined" "__pixel redefined" { target *-*-* } 46 } */
/* { dg-warning "redefined" "__bool redefined" { target *-*-* } 47 } */
/* { dg-warning "redefined" "vector redefined" { target *-*-* } 48 } */
/* { dg-warning "redefined" "pixel redefined" { target *-*-* } 49 } */
/* { dg-warning "redefined" "bool redefined" { target *-*-* } 50 } */
/* { dg-message "location of the previous" "prev __vector defn" { target *-*-* } 25 } */
/* { dg-message "location of the previous" "prev __pixel defn" { target *-*-* } 28 } */
/* { dg-message "location of the previous" "prev __bool defn" { target *-*-* } 31 } */
/* { dg-message "location of the previous" "prev vector defn" { target *-*-* } 34 } */
/* { dg-message "location of the previous" "prev pixel defn" { target *-*-* } 37 } */
/* { dg-message "location of the previous" "prev bool defn" { target *-*-* } 40 } */
|