forked from OSchip/llvm-project
parent
650dcf6027
commit
bc03521fc9
|
@ -310,13 +310,13 @@ and represent it in the AST perfectly, but the semantics of operations need to
|
|||
|
||||
<code>
|
||||
void func() {<br>
|
||||
typedef int foo;<br>
|
||||
foo X, *Y;<br>
|
||||
typedef foo* bar;<br>
|
||||
bar Z;<br>
|
||||
*X; <i>// error</i><br>
|
||||
**Y; <i>// error</i><br>
|
||||
**Z; <i>// error</i><br>
|
||||
typedef int foo;<br>
|
||||
foo X, *Y;<br>
|
||||
typedef foo* bar;<br>
|
||||
bar Z;<br>
|
||||
*X; <i>// error</i><br>
|
||||
**Y; <i>// error</i><br>
|
||||
**Z; <i>// error</i><br>
|
||||
}<br>
|
||||
</code>
|
||||
|
||||
|
|
Loading…
Reference in New Issue