project Add_List3 is

   type A_Type is
      ("1", "2");
   A : A_Type := external ("A");

   case A is

      when "2" =>
         for Source_Dirs use ("..");
         for Source_Dirs use (".");

      when "1" =>
         for Source_Dirs use ("..");
         for Source_Dirs use ("foo", "bar");
         for Object_Dir use ".";
   end case;

end Add_List3;

