From 8a9a5dfef0e45118b5735ee444f56247a0cc0e02 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 29 Jul 2011 14:48:25 -0400 Subject: [PATCH] Update ctf path test Signed-off-by: Mathieu Desnoyers --- formats/ctf/metadata/ctf-test/tofix/ctf-path.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt b/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt index fadbe9f0..ccfcbda1 100644 --- a/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt +++ b/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt @@ -49,17 +49,19 @@ event { /* * TODO: Deal with path name lookup conflict, e.g. if a field is * named "stream", it conflicts with the stream dynamic scope. + * Local fields hide dynamic scopes. */ struct { enum select sel3 } stream; - /* The following test should fail: */ - /* variant var3 c; */ + variant var3 c; + /* But now the following lookup should fail: */ + /* variant var4 d; */ /* * TODO: support conflict-free local-scoped tags, starting with * ".". */ - variant var4 <.stream.sel3> d; + variant var5 <.stream.sel3> e; }; }; -- 2.34.1